aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshoshin <shoshin@cicadas.surf>2022-09-16 19:11:22 -0500
committershoshin <shoshin@cicadas.surf>2022-09-16 19:11:22 -0500
commit88f8e0f139b0c0d81c834501dccde04a0032d55d (patch)
treef583e153c43bfbdaee79432d5aa30062b89c6c19
parent95abbccc36394b24e55c30f3d7a93c227b3d32f5 (diff)
Clean: use fset instead of (setf (symbol-function ...))
-rw-r--r--shoshimacs.el2
-rw-r--r--shoshimacs.org2
2 files changed, 2 insertions, 2 deletions
diff --git a/shoshimacs.el b/shoshimacs.el
index bb72c6e..10d107f 100644
--- a/shoshimacs.el
+++ b/shoshimacs.el
@@ -195,7 +195,7 @@
(define-key flymake-mode-map (kbd "M-p") 'flymake-goto-prev-error))
;;; Projects
-(setf (symbol-function 'project-prefix-map) project-prefix-map)
+(fset 'project-prefix-map project-prefix-map)
(package-install 'magit)
diff --git a/shoshimacs.org b/shoshimacs.org
index 7b75736..3c7bdf6 100644
--- a/shoshimacs.org
+++ b/shoshimacs.org
@@ -748,7 +748,7 @@ the ~symbol-function~ place on the ~project-prefix-map~ to be the value,
the actual keymap structure, of the ~project-prefix-map~ symbol. 😵
#+begin_src emacs-lisp
- (setf (symbol-function 'project-prefix-map) project-prefix-map)
+ (fset 'project-prefix-map project-prefix-map)
#+end_src
** version control