diff options
Diffstat (limited to 'emacs/custom')
-rw-r--r-- | emacs/custom/my-edit.el (renamed from emacs/custom/fcuny-edit.el) | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/emacs/custom/fcuny-edit.el b/emacs/custom/my-edit.el index d40fd06..eecd557 100644 --- a/emacs/custom/fcuny-edit.el +++ b/emacs/custom/my-edit.el @@ -1,4 +1,4 @@ -;;; fcuny-edit.el --- Configure parts related to editing +;;; my-edit.el --- Configure parts related to editing ;;; Commentary: ;;; Code: @@ -12,18 +12,16 @@ (global-auto-revert-mode t)) (use-package whitespace - :hook ((prog-mode . fcuny/whitespace-setup) - (conf-mode . fcuny/whitespace-setup) - (outline-mode . fcuny/whitespace-setup) - (yaml-mode . fcuny/whitespace-setup)) - + :preface + (defun my/whitespace-setup () + (setq show-trailing-whitespace t)) + :hook ((prog-mode . my/whitespace-setup) + (conf-mode . my/whitespace-setup) + (outline-mode . my/whitespace-setup) + (yaml-mode . my/whitespace-setup)) :custom (whitespace-style '(face)) - (show-trailing-whitespace nil) - - :init - (defun fcuny/whitespace-setup () - (setq show-trailing-whitespace t))) + (show-trailing-whitespace nil)) (use-package electric-pair-mode :commands electric-pair-mode @@ -48,5 +46,5 @@ ;; switched to it using C-x C-q). (setq view-read-only t) -(provide 'fcuny-edit) -;;; fcuny-edit.el ends here +(provide 'my-edit) +;;; my-edit.el ends here |