about summary refs log tree commit diff
path: root/modules/workstation/emacs/init.el
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-02-17 17:24:26 +0000
committerAlyssa Ross <hi@alyssa.is>2021-02-17 17:24:26 +0000
commite1ffde967180cdb099d73ad42061386761ad0149 (patch)
treec6106da379832f8d76b89a63a93be6e918c53e34 /modules/workstation/emacs/init.el
parent435592dfbf05bf28a02ef4ce36747284027f204e (diff)
downloadnixlib-e1ffde967180cdb099d73ad42061386761ad0149.tar
nixlib-e1ffde967180cdb099d73ad42061386761ad0149.tar.gz
nixlib-e1ffde967180cdb099d73ad42061386761ad0149.tar.bz2
nixlib-e1ffde967180cdb099d73ad42061386761ad0149.tar.lz
nixlib-e1ffde967180cdb099d73ad42061386761ad0149.tar.xz
nixlib-e1ffde967180cdb099d73ad42061386761ad0149.tar.zst
nixlib-e1ffde967180cdb099d73ad42061386761ad0149.zip
modules/emacs: use function refs for keybindings
Diffstat (limited to 'modules/workstation/emacs/init.el')
-rw-r--r--modules/workstation/emacs/init.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el
index 6ff273bdc43e..7134f3a17508 100644
--- a/modules/workstation/emacs/init.el
+++ b/modules/workstation/emacs/init.el
@@ -76,7 +76,7 @@
 
 ;;; Direnv ;;;
 (direnv-mode)
-(global-set-key (kbd "C-c d") 'direnv-update-environment)
+(global-set-key (kbd "C-c d") #'direnv-update-environment)
 
 ;;; Ediff ;;;
 ;; Don't make a new frame for Ediff controls.
@@ -123,8 +123,8 @@
 (setq magit-delete-by-moving-to-trash delete-by-moving-to-trash)
 (setq magit-repository-directories
       `((,(expand-file-name "~/src") . 1)))
-(global-set-key (kbd "C-x g") 'magit-status)
-(global-set-key (kbd "C-x M-g") 'magit-dispatch)
+(global-set-key (kbd "C-x g") #'magit-status)
+(global-set-key (kbd "C-x M-g") #'magit-dispatch)
 
 (with-eval-after-load "magit"
   ;; Add a --no-gpg-sign option to Magit.  This is only useful with
@@ -162,7 +162,7 @@
 (add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
 
 ;;; Revert buffers ;;;
-(global-set-key (kbd "C-c r") 'revert-buffer)
+(global-set-key (kbd "C-c r") #'revert-buffer)
 
 ;;; Rust ;;;
 ;; Indent with spaces in Rust code.