about summary refs log tree commit diff
path: root/configs/shared/emacs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-20T15·03+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-20T15·03+0000
commit29e19725ac7d30c1674be43c9441bf5dacb224c0 (patch)
treed3eeab924f03fbfdbbc11d088b3f6c303c129279 /configs/shared/emacs
parente14b271d3980468bd7eb1db2192796e2ade7400b (diff)
Rename Elisp function for ensuring KBDs
Prefer wpc/ namespace for functions that I define. Consider defining all
functions in one location, similar to ZSH's functions.zsh
Diffstat (limited to 'configs/shared/emacs')
-rw-r--r--configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el
index 6272b1127088..4f07a8ce70ad 100644
--- a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el
+++ b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-keybindings.el
@@ -92,17 +92,17 @@
   :config
   (global-evil-surround-mode 1))
 
-;; Custom minor mode that ensures that my kbds are available no matter which major
-;; or minor modes are active.
-(add-hook 'after-load-functions #'ensure-william-carroll-kbds)
-
-(defun ensure-william-carroll-kbds (_ignore)
+(defun wpc/ensure-kbds (_ignore)
   "Try to ensure that my keybindings retain priority over other minor modes."
   (unless (eq (caar minor-mode-map-alist) 'wpc/kbds-minor-mode)
     (let ((mykbds (assq 'wpc/kbds-minor-mode minor-mode-map-alist)))
       (assq-delete-all 'wpc/kbds-minor-mode minor-mode-map-alist)
       (add-to-list 'minor-mode-map-alist mykbds))))
 
+;; Custom minor mode that ensures that my kbds are available no matter which
+;; major or minor modes are active.
+(add-hook 'after-load-functions #'wpc/ensure-kbds)
+
 (defvar wpc/kbds
   (let ((map (make-sparse-keymap)))
     (bind-keys :map map