diff options
-rw-r--r-- | hotline-ticket-notes.el | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/hotline-ticket-notes.el b/hotline-ticket-notes.el index 46d6b48..5b79af7 100644 --- a/hotline-ticket-notes.el +++ b/hotline-ticket-notes.el @@ -62,55 +62,55 @@ ;; Buffer titles get cut off quite early in the Ibuffer listing. ;; This snippet enlarges the size of the buffer title column. -(setq ibuffer-formats - '((mark modified read-only " " - (name 60 60 :left :elide) - " " - (size 9 -1 :right) - " " - (mode 16 16 :left :elide) - " " filename-and-process) - (mark " " - (name 16 -1) - " " filename))) +;; (setq ibuffer-formats +;; '((mark modified read-only " " +;; (name 60 60 :left :elide) +;; " " +;; (size 9 -1 :right) +;; " " +;; (mode 16 16 :left :elide) +;; " " filename-and-process) +;; (mark " " +;; (name 16 -1) +;; " " filename))) ;; Auto-revert buffers (particularly interesting for keeping the ;; Ibuffer up to date) -(setq global-auto-revert-non-file-buffers t) -(global-auto-revert-mode 1) +;; (setq global-auto-revert-non-file-buffers t) +;; (global-auto-revert-mode 1) ;; For easier distinction of the todo-states of hotline ticket note ;; buffers in the Ibuffer listing, display their buffer titles in ;; different colors according to their todo-state. -(defface red-face '((t :foreground "#FF0000")) "") -(defface green-face '((t :foreground "#228B22")) "") -(defface brown-face '((t :foreground "#FA8072")) "") -(defface blue-face '((t :foreground "#1E90FF")) "") -(defface teal-background-face '((t :foreground "#000000" :background "#20B2AA")) "") - -(setq ibuffer-fontification-alist - '((1 (string-match "TODO" (buffer-name)) red-face) - (1 (string-match "DONE" (buffer-name)) green-face) - (1 (string-match "ARCH" (buffer-name)) brown-face) - (1 (string-match "FWRD" (buffer-name)) blue-face) - (1 (string-match "\?" (buffer-name)) teal-background-face))) +;; (defface red-face '((t :foreground "#FF0000")) "") +;; (defface green-face '((t :foreground "#228B22")) "") +;; (defface brown-face '((t :foreground "#FA8072")) "") +;; (defface blue-face '((t :foreground "#1E90FF")) "") +;; (defface teal-background-face '((t :foreground "#000000" :background "#20B2AA")) "") + +;; (setq ibuffer-fontification-alist +;; '((1 (string-match "TODO" (buffer-name)) red-face) +;; (1 (string-match "DONE" (buffer-name)) green-face) +;; (1 (string-match "ARCH" (buffer-name)) brown-face) +;; (1 (string-match "FWRD" (buffer-name)) blue-face) +;; (1 (string-match "\?" (buffer-name)) teal-background-face))) ;; Invert the Ibuffer listing sorting, so that non-closed (todo) ;; hotline ticket note buffers appear at the top, and closed ones ;; (done) at the bottom. -(add-hook 'ibuffer-hook 'ibuffer-do-sort-by-alphabetic) -(add-hook 'ibuffer-hook 'ibuffer-invert-sorting) +;; (add-hook 'ibuffer-hook 'ibuffer-do-sort-by-alphabetic) +;; (add-hook 'ibuffer-hook 'ibuffer-invert-sorting) ;; Use a custom date and time format for Org mode. ;; This example is suitable for Germany at least. -(setq display-time-format "%H:%M" - org-time-stamp-custom-formats - '("<%a %e. %B %Y>" . "<%a %e %B %Y %H:%M>")) -(setq-default org-display-custom-times t) +;; (setq display-time-format "%H:%M" +;; org-time-stamp-custom-formats +;; '("<%a %e. %B %Y>" . "<%a %e %B %Y %H:%M>")) +;; (setq-default org-display-custom-times t) ;; Auto-insert timestamp below an Org todo keyword line, once the ;; todo-state changes to "DONE". -(setq org-log-done 'time) +;; (setq org-log-done 'time) ;; @@ -176,14 +176,14 @@ ;; (uncomment them for enabling them) ;; Use Ibuffer (C-x C-b) for listing buffers. -(global-set-key [remap list-buffers] 'ibuffer) +;; (global-set-key [remap list-buffers] 'ibuffer) ;; Change todo-state of a hotline ticket with C-d. ;; This overrides the keybinding for `delete-char'. -(global-set-key (kbd "C-d") 'hotline-toggle-ticket-status) +;; (global-set-key (kbd "C-d") 'hotline-toggle-ticket-status) ;; Create a new ticket note using C-. c. -(global-set-key (kbd "C-. c") 'hotline-add-ticket-note) +;; (global-set-key (kbd "C-. c") 'hotline-add-ticket-note) ;; Optional dependencies |