From 88f8e0f139b0c0d81c834501dccde04a0032d55d Mon Sep 17 00:00:00 2001 From: shoshin Date: Fri, 16 Sep 2022 19:11:22 -0500 Subject: Clean: use fset instead of (setf (symbol-function ...)) --- shoshimacs.el | 2 +- shoshimacs.org | 2 +- 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 -- cgit v1.2.3