Created
August 6, 2018 08:03
-
-
Save davep/c16534ef91e9868aaff3d3658f880e4a to your computer and use it in GitHub Desktop.
Command to list all programming major modes know to an Emacs instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun list-prog-modes () | |
"List all programming modes known to this Emacs." | |
(interactive) | |
(with-help-window "*Programming Major Modes*" | |
(mapatoms (lambda (f) | |
(when (provided-mode-derived-p f 'prog-mode) | |
(princ f) | |
(princ "\n")))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running the above in my current instance of Emacs gets this: