From d18362a37bc92e460cde2aa8b8c0079e11661b32 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Wed, 22 Jan 2020 02:48:27 -0500 Subject: [PATCH] emacs: use #' for functions --- emacs/auto/-keys.el | 20 ++++++++++---------- emacs/auto/-macro.el | 11 ++++++----- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/emacs/auto/-keys.el b/emacs/auto/-keys.el index 0479d77..e9a159d 100644 --- a/emacs/auto/-keys.el +++ b/emacs/auto/-keys.el @@ -9,23 +9,23 @@ (defun agw-set-key (key def) (define-key agw-mode-map (kbd (concat "C- " key)) def)) -(agw-set-key "b d" 'kill-this-buffer) -(agw-set-key "b e" 'ibuffer) +(agw-set-key "b d" #'kill-this-buffer) +(agw-set-key "b e" #'ibuffer) -(agw-set-key "f" 'dired) +(agw-set-key "f" #'dired) -(agw-set-key "w" 'deadgrep) +(agw-set-key "w" #'deadgrep) -(agw-set-key "h" 'windmove-left) -(agw-set-key "j" 'windmove-down) -(agw-set-key "k" 'windmove-up) -(agw-set-key "l" 'windmove-right) +(agw-set-key "h" #'windmove-left) +(agw-set-key "j" #'windmove-down) +(agw-set-key "k" #'windmove-up) +(agw-set-key "l" #'windmove-right) -(agw-set-key "s" 'sort-lines) +(agw-set-key "s" #'sort-lines) (agw-key-map) ; just in case - bind for disabling key map mode -(global-set-key (kbd "C-x C-") 'agw-key-map) +(global-set-key (kbd "C-x C-") #'agw-key-map) ;; EOF diff --git a/emacs/auto/-macro.el b/emacs/auto/-macro.el index b887ad6..60cf195 100644 --- a/emacs/auto/-macro.el +++ b/emacs/auto/-macro.el @@ -9,11 +9,12 @@ (flyspell-mode) (setq-local indent-tabs-mode nil)) -(add-hook 'org-mode-hook 'agw-org-mode) +(add-hook 'org-mode-hook #'agw-org-mode) + +(add-hook 'emacs-lisp-mode-hook #'agw-lisp-mode) +(add-hook 'lisp-mode-hook #'agw-lisp-mode) +(add-hook 'reb-lisp-mode-hook #'agw-lisp-mode) +(add-hook 'scheme-mode-hook #'agw-lisp-mode) -(add-hook 'emacs-lisp-mode-hook 'agw-lisp-mode) -(add-hook 'lisp-mode-hook 'agw-lisp-mode) -(add-hook 'reb-lisp-mode-hook 'agw-lisp-mode) -(add-hook 'scheme-mode-hook 'agw-lisp-mode) ;; EOF