From f0b8815d7de8ef698bc69719f7947a7a229b0afa Mon Sep 17 00:00:00 2001 From: Joonsung Gil Date: Sat, 19 Mar 2022 13:48:07 +0900 Subject: [PATCH 1/2] fix parameter emacs-lisp-mode to emacs-lisp-mode-map --- README.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.org b/README.org index 7dfd16e..a32131e 100644 --- a/README.org +++ b/README.org @@ -494,7 +494,7 @@ Now your function `foo` is interactive, you can use it in a keybinding: #+BEGIN_SRC emacs-lisp - (define-key emacs-lisp-mode (kbd "C-c C-f") 'foo) + (define-key emacs-lisp-mode-map (kbd "C-c C-f") 'foo) #+END_SRC ** Defining your own major mode From 4db76570353ac28f5393caebc3ff42df768ed289 Mon Sep 17 00:00:00 2001 From: Joonsung Gil Date: Sat, 19 Mar 2022 13:53:05 +0900 Subject: [PATCH 2/2] fix parameter emacs-lisp-mode to emacs-lisp-mode-map for md file --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7f7c5fd..b380a6b 100644 --- a/README.md +++ b/README.md @@ -527,7 +527,7 @@ Now your function `foo` is interactive, you can use it in a keybinding: ``` lisp -(define-key emacs-lisp-mode (kbd "C-c C-f") 'foo) +(define-key emacs-lisp-mode-mode (kbd "C-c C-f") 'foo) ``` ## Defining your own major mode @@ -683,4 +683,4 @@ need a `(provide 'foo)` line at the bottom of your file for this to work. * http://www.delorie.com/gnu/docs/emacs-lisp-intro/emacs-lisp-intro_toc.html * http://cjohansen.no/an-introduction-to-elisp * http://emacswiki.org/emacs/ElispCookbook -* [Emacs cheah sheet](https://web.archive.org/web/20150525182115/http://wikemacs.org/wiki/Emacs_Lisp_Cheat_Sheet) \ No newline at end of file +* [Emacs cheah sheet](https://web.archive.org/web/20150525182115/http://wikemacs.org/wiki/Emacs_Lisp_Cheat_Sheet)