aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2023-08-09 17:35:24 +0300
committerEli Zaretskii2023-08-09 17:35:24 +0300
commit913e50aba6c8be86c762ad2f6491b81ca7e9cdfd (patch)
tree311323c5a104edc1a8e054edfcd52940cd0a6a4d
parentb93107c20b2899612c5c7a15187fc69866905e47 (diff)
downloademacs-913e50aba6c8be86c762ad2f6491b81ca7e9cdfd.tar.gz
emacs-913e50aba6c8be86c762ad2f6491b81ca7e9cdfd.zip
Add native-compilation to Emacs Lisp mode menu
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode-menu): Add menu item for emacs-lisp-native-compile-and-load.
-rw-r--r--lisp/progmodes/elisp-mode.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 956e3d30bce..1b42051ab93 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -84,6 +84,10 @@ All commands in `lisp-mode-shared-map' are inherited by this map."
84 :help "Byte-compile the current file (if it has changed), then load compiled code"] 84 :help "Byte-compile the current file (if it has changed), then load compiled code"]
85 ["Byte-recompile Directory..." byte-recompile-directory 85 ["Byte-recompile Directory..." byte-recompile-directory
86 :help "Recompile every `.el' file in DIRECTORY that needs recompilation"] 86 :help "Recompile every `.el' file in DIRECTORY that needs recompilation"]
87 ["Native-compile and Load" emacs-lisp-native-compile-and-load
88 :help "Compile the current file to native code, then load compiled native code"
89 :active (and (featurep 'native-compile)
90 (native-comp-available-p))]
87 ["Disassemble Byte Compiled Object..." disassemble 91 ["Disassemble Byte Compiled Object..." disassemble
88 :help "Print disassembled code for OBJECT in a buffer"] 92 :help "Print disassembled code for OBJECT in a buffer"]
89 "---" 93 "---"