summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs/custom/my-edit.el (renamed from emacs/custom/fcuny-edit.el)24
-rw-r--r--emacs/init.el2
2 files changed, 12 insertions, 14 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
diff --git a/emacs/init.el b/emacs/init.el
index 7334f48..54dc616 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -41,7 +41,7 @@
(require 'my-settings (expand-file-name "custom/my-settings" user-emacs-directory))
(require 'my-ui (expand-file-name "custom/my-ui" user-emacs-directory))
(require 'my-navigation (expand-file-name "custom/my-navigation" user-emacs-directory))
-(require 'fcuny-edit (expand-file-name "custom/fcuny-edit" user-emacs-directory))
+(require 'my-edit (expand-file-name "custom/my-edit" user-emacs-directory))
(require 'fcuny-text (expand-file-name "custom/fcuny-text" user-emacs-directory))
(require 'fcuny-git (expand-file-name "custom/fcuny-git" user-emacs-directory))
(require 'fcuny-org (expand-file-name "custom/fcuny-org" user-emacs-directory))