From 4cfefb2ded4fae1ab5e21e01842c44429dcf49b8 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 1 Jan 2023 11:12:27 -0800 Subject: [PATCH] whitespace changes --- emacs_el/configuration/don-configuration.org | 62 ++++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/emacs_el/configuration/don-configuration.org b/emacs_el/configuration/don-configuration.org index a00859a..5027fd7 100644 --- a/emacs_el/configuration/don-configuration.org +++ b/emacs_el/configuration/don-configuration.org @@ -724,8 +724,8 @@ Enable/disable company completion from ispell dictionaries ([[https://github.com (save-excursion (outline-cycle))))) -(bind-key "" #'malb/indent-fold-or-complete) -(bind-key "C-" #'malb/toggle-fold) +(bind-key "" 'malb/indent-fold-or-complete) +(bind-key "C-" 'malb/toggle-fold) #+END_SRC ** Tinyprocmail @@ -1640,13 +1640,13 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori * Base emacs ** Reverting buffers #+BEGIN_SRC emacs-lisp - (use-package autorevert - :diminish auto-revert-mode - :config - (setq global-auto-revert-non-file-buffers t - global-auto-revert-ignore-modes '(pdf-view-mode) - auto-revert-verbose nil) - (global-auto-revert-mode 1)) +(use-package autorevert + :delight auto-revert-mode + :config + (setq global-auto-revert-non-file-buffers t + global-auto-revert-ignore-modes '(pdf-view-mode) + auto-revert-verbose nil) + (global-auto-revert-mode 1)) #+END_SRC * Org Mode ** Use-package and load things @@ -1901,30 +1901,30 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori #+END_SRC ** Utility Functions #+BEGIN_SRC emacs-lisp - (defun bh/hide-other () - (interactive) - (save-excursion - (org-back-to-heading 'invisible-ok) - (outline-hide-other) - (org-cycle) - (org-cycle) - (org-cycle))) - - (defun bh/set-truncate-lines () - "Toggle value of truncate-lines and refresh window display." - (interactive) - (setq truncate-lines (not truncate-lines)) - ;; now refresh window display (an idiom from simple.el): - (save-excursion - (set-window-start (selected-window) - (window-start (selected-window))))) +(defun bh/hide-other () + (interactive) + (save-excursion + (org-back-to-heading 'invisible-ok) + (outline-hide-other) + (org-cycle) + (org-cycle) + (org-cycle))) + +(defun bh/set-truncate-lines () + "Toggle value of truncate-lines and refresh window display." + (interactive) + (setq truncate-lines (not truncate-lines)) + ;; now refresh window display (an idiom from simple.el): + (save-excursion + (set-window-start (selected-window) + (window-start (selected-window))))) - (defun bh/switch-to-scratch () - (interactive) - (switch-to-buffer "*scratch*")) +(defun bh/switch-to-scratch () + (interactive) + (switch-to-buffer "*scratch*")) - (setq org-use-fast-todo-selection t) - (setq org-treat-S-cursor-todo-selection-as-state-change nil) +(setq org-use-fast-todo-selection t) +(setq org-treat-S-cursor-todo-selection-as-state-change nil) ; create function to create headlines in file. This comes from ; http://stackoverflow.com/questions/13340616/assign-ids-to-every-entry-in-org-mode -- 2.39.2