Category Archives: Emacs

How to make prettify-symbols-mode work with AUCTeX

prettify-symbols-mode is a recent feature of Emacs and it’s very nice. And it looks like it can replace TeX-fold-mode in the future. But, at the time of writing, prettify-symbols-mode doesn’t seem to work well with AUCTeX unless you enable two … Continue reading

Posted in Emacs | Tagged , , | Leave a comment

why learn elisp (Emacs Lisp)

This post is the intro module of Living with Emacs Lisp. The goal of this post is to hopefully convince you why you should learn elisp. Readers are assumed to be beginning users of Emacs. (Of course he who does … Continue reading

Posted in Emacs | Tagged | 2 Comments

Type backslash easily in Emacs AUCTeX

Table of Contents 1. type slash to type backslash 2. use the two commands Writing LaTeX documents seem to require many presses of backslashes and the backslash key is located at awkward place and hard to type in some types … Continue reading

Posted in Emacs | Tagged | Leave a comment

Lisp lists and destructive functions

Table of Contents 1. nil and non-nil 2. cons cell 3. cons cells in diagrams 4. lists 5. improper lists and proper lists 6. check for empty list, non-empty list, list 7. sequence 8. literal list 9. shared structure 10. … Continue reading

Posted in Emacs, Lisp | Tagged , | Leave a comment

Names and things (reference semantics) vs. boxes and things (value semantics)

Table of Contents 1. Motivation 2. Alfie Bobbie thought experiment 3. The aa bb experiment (back to Snippet 20) 4. Boxes containing object references 5. Two different meanings of change 6. Pass by value or pass by reference 7. With … Continue reading

Posted in Emacs, Lisp, Python | Tagged , , | 1 Comment

It is not hard to edit Lisp code

Table of Contents 1. Intro 2. Which editor or IDE to use 3. The three phases 4. Always indent. 5. Evaluate! 6. One liners 7. Breaking lines 8. Joining lines 9. Placement of close parens 10. The “No red tape” … Continue reading

Posted in Emacs, Lisp | Tagged | 2 Comments

It is not hard to read Lisp code

Table of Contents 1. Intro 2. Tree view 3. Terminology 3.1. Emacs Lisp note 3.2. Common Lisp note 4. Variations 5. How to find where the expression ends. 6. Some difference from Python 7. Tools 8. Logical operators being used … Continue reading

Posted in Emacs, Lisp | Tagged , | 4 Comments