Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Are you looking for documentation about dynamic scope and lexical scope? You can find that at C-h i g (elisp)Variable Scoping Commented Nov 16 at 16:04
  • If you're looking for documentation on "creating mode-line constructs such as the /l and /d in your example" then you're looking for C-h i g (elisp)Mode Line Format Commented Nov 16 at 16:07
  • If you just want to see the code that does this for emacs-lisp-mode specifically, then simply look at the definition of M-x find-function RET emacs-lisp-mode, or else check C-h v mode-name in any buffer for an elisp file. Commented Nov 16 at 16:08
  • (If you clarify the question, I'll convert the appropriate comment to an answer -- assuming it was one of the above.) Commented Nov 16 at 16:09