Random elisp manual
Xah Emacs Packages
Emacs: Xah Emacs Lisp Mode
This is the home page of xah-elisp-mode, a major mode for emacs lisp.
Also on MELPA
〔➤ Emacs: How to Install Packages Using ELPA, MELPA, Marmalade〕
For any problems, file a report on github, or comment here.
Semantic syntax coloring. Emacs lisp words are colored by their purpose. (for 99% statistically most frequently used elisp functions.)
Keyword completion with
ido-mode interface. Press
Tab ↹ after a word to complete symbol. Function templates. (press
Space after full name.) 1 to 4 letters abbrevs for top 50 most used functions. e.g. “bsnp”
Space → “buffer-substring-no-properties”. Smart prettify code. Press
Tab ↹ before a word (or at end of paren) to reformat entire sexp tree.
No dependency on third-party package. Only require bare GNU emacs.
Single-letter abbrevs are:
d → defun
i → insert
l → let
m → message
p → point
s → setq
w → when
list-abbrevs to see the full list.
Yasnippt, Auto-Complete, Company Mode Users
If you want to use yasnippet for expansion instead, you'll need to bind the TAB key for the command
Emacs: How to Bind Keys for Major Mode? What's a Hook?〕
For auto-complete and company-mode, you'll need to either bind the TAB key, add xah-elisp-mode to the config.
xah-elisp-mode is designed without using them. I haven't had time to make them all work. But if you want to, just ask me in comment.
there are still some big tasks to do.
More refined classification of elisp keyword types. (research on different classification, and implement a way to grab ALL emacs lisp symbols with automated template) 〔➤
Syntax Coloring in Editors〕 Automatic formatting. (press a button to reformat current lisp expression tree into single line, and press again to pretty formatted by lines.) Or, reformat whole buffer, file, directory. See: Programing: Lisp: Automatic Code Formatting, Lint, Auto Indentation
full-featured semantic-based extend selection beyond gnu emacs builtin lisp parser provides. See:
A Text Editor Feature: Extend Selection by Semantic Unit (without requiring expand-region package) 100% structure-aware editing. Any key you press or command you call will be lisp syntax aware, so that invalid syntax isn't possible. This would be somewhat similiar to paredit mode in purpose, but will be fundamentally different in philosophy and use.
If you would like these features, different from traditional idea of line-based indentation, please do donate.
PayPal to 〔email@example.com〕. In the comment box, say “fund for elisp mode”.
Buy Xah Emacs Tutorial and add a comment “fund for elisp mode”.
blog comments powered by