elisp
Finding the Emacs site-lisp directory
I am trying to make my Emacs configuration file written for OS X work on Ubuntu. I have this line: 开发者_StackOverflow社区(add-to-list \'load-path \"/usr/local/Cellar/emacs/23.3/share/emacs/site-lis[详细]
2023-03-25 12:20 分类:问答How to overcome the lack of local variable for emacs lisp closure
I\'m now studying Emacs Lisp from the reference manual and Common Lisp from a LISP Book. from the Common Lisp book[详细]
2023-03-25 08:02 分类:问答Infinite loop in emacs lisp when using org-table-convert-region
I\'ve been having trouble with an infinite loop in the code below. It inserts a list of items at point, comma separating them, and then converts the list to an org table.[详细]
2023-03-25 06:40 分类:问答invoking functions defined by flet in another function
I have a collection of functions defined in foo that I want to also want to use in bar. I have these functions defined in foo because I want foo to be self-contained -- otherwise I know that I can def[详细]
2023-03-24 17:01 分类:问答File extension hook in Emacs
I\'d like to run a hook for specific file extensions (i.e. not modes). I have zero experience with elisp, so I cargo-cult coded this:[详细]
2023-03-24 05:42 分类:问答How to increment local variables in elisp
I am trying to write a loop in elisp which prints the values sequencially. I have tried the following code to print the sequence from 1.. which does not work. Please point the error in the code.[详细]
2023-03-23 18:23 分类:问答Unicode characters in emacs term-mode
I use ansi-term for my normal terminal sessions.I tend to use unicode characters in my prompt to do things like set the trailing character based on the type of开发者_JAVA技巧 source control I\'m using[详细]
2023-03-23 07:02 分类:问答Emacs indent level global override
I want to set the indentation mode to tabs only, with a 4 character width for any mode. This seems like a trivial thing, but I have not had success. Every mode seems to have its own variables and opti[详细]
2023-03-23 03:38 分类:问答How to override/change mode key bindings in elisp?
In particular, when I load dired-x, it sets M-o to toggle the omit minor mode. I use M-o for other-window, so I would like to change the key that dired-x b开发者_高级运维inds to something else. I\'ve[详细]
2023-03-22 06:21 分类:问答Losing cursor location with save-excursion after replace-match
In this answer, I use a regular expression search/replace to convert from one type of ruby block to another. However, after the function ruby-flip-containing-block-type is done, the point is moved to[详细]
2023-03-22 00:22 分类:问答