
How can I start learning Emacs Lisp? - Emacs Stack Exchange
2019年1月22日 · The Elisp manual - mostly a reference, but some good usage guidance and conceptual info too. It's built into Emacs: C-h i then choose the Elisp manual. The Emacs Lisp Intro - step-by-step intro to Lisp and Emacs Lisp. Also built into Emacs and available from C-h i. Since you've used Common Lisp it will be super easy to pick up Emacs Lisp ...
elisp - Advantages of setting variables with setq instead of …
The whole customize thing is rather complex. Without it, the emacs system is much simpler. The customize is a layer that doesn't exactly mesh well with elisp. For one thing, it order all vars by alphabets. Also, many customization are not about variables (e.g. hooks, keys) so can't use customize. So you have a situation of manual elisp code anyway.
elisp - How to know when or when not to use the single quote …
In general, Elisp isn't terribly consistent about quoted vs. unquoted arguments, but any function (not macro) that needs to interact with a variable instead of a value will take its argument quoted (setq being a major exception). –
elisp macros - "and" vs "when" for conditionals - Emacs Stack …
2015年7月24日 · Elisp - Conditionals (look for the when section in here) Elisp - Combining Conditions (look for the and section in here) # All references to true refer to the Boolean TRUE.
Is there a better way to handle multiline docstrings in elisp?
Lest somebody say that this answer goes beyond the original scope of question, please let me point out that the question title was "Is there a better way to handle multiline docstrings in elisp?". Not specifically docstring indentation for defun, although that was the original motivating example.
elisp - What's the difference between push and add-to-list?
2021年11月12日 · From the Emacs documentation, or C-h f push:. Macro: push element listname. This macro creates a new list whose car is element and whose cdr is the list specified by listname, and saves that list in listname.
elisp - When should sharp quotes be used? - Emacs Stack Exchange
2017年10月8日 · From (elisp) Anonymous Functions:-- Special Form: function function-object. This special form returns FUNCTION-OBJECT without evaluating it. In this, it is similar to quote (*note Quoting::). But unlike quote, it also serves as a note to the Emacs evaluator and byte-compiler that FUNCTION-OBJECT is intended to be used as a function
elisp - How to retrieve docstrings from functions and variables ...
2015年7月11日 · To clarify: do you have an Elisp source file (my interpretation), or do you have a bunch of variables and functions in the current Emacs environment (Constantine's interpretation)? And if the first interpretation, do you really want all (def…) sexps, not just top-level specs? Or the intermediate interpretation of the functions and variables ...
elisp - Emacs Lisp comment conventions - Emacs Stack Exchange
2016年3月18日 · The Emacs Lisp Reference Manual's Appendix D.7 mentions some comment tips: Single semicolons (;) should be used for inline comments. Double semicolons (;;) should be used for line comments. Triple
elisp - When should one use the deactivate-mark function vs just ...
2015年5月14日 · The function in question is elisp (not C) and is just 19 lines long -- it triggers (among other things) the function that is found within simple.el which normally runs multiple times per redisplay cycle and affects the visible windows -- i.e., redisplay--update-region-highlight Setting the variable alone is not going to trigger that redisplay ...