elisp
How can I get Emacs to revert all unchanged buffers when switching branches in git?
Often, when I switch branches in git, if the files are open in emacs, then emacs asks if I want to revert them (as it thinks they\'ve changed on disk) even though the contents are identical.[详细]
2023-04-05 15:07 分类:问答Formatting a header in an Emacs function to print a buffer to PDF w/ line wrapping
Rupert Swarbrick came up with the following three functions to print an Emacs buffer to pdf in which lines are wrapped (this is not normally the case when using ps-print* functions).[详细]
2023-04-05 12:12 分类:问答How to wait for an event in Emacs Lisp function?
I\'m trying to write the simplest function: send a query to w3m browser and then find a particular place on the webpage:[详细]
2023-04-05 09:29 分类:问答Make auto-complete and yasnippet modes work together to edit a specific file in GNU/Emacs
I use Emacs 24 from scratch with the latest yasnippet and auto-complete installed and nominally working. Now, as a emacs user and an android developer, I\'d like to use my favorite editor and automate[详细]
2023-04-05 09:23 分类:问答In Emacs, what's the canonical way to protect vital buffers like *scratch* and *Messages* from ever being killed?
I was reading this question and the answers are a convoluted mess (timer function REALLY?) In any case, I don\'t care about recreating these buffers, as that is trivial.But these buffers contain info[详细]
2023-04-05 08:25 分类:问答Generate code in C
I\'ve got a library in C that I\'d like to generate bindings for in Elisp. In Ruby, I\'d simply include a header and then use its C API to generate functions and so on. Can I do the same on elisp? des[详细]
2023-04-05 06:14 分类:问答Emacs mode: how to specify that thing in square brackets should be colored
I write a simple emacs mode. How do I explicitly specify that all things in e.g. square brackets should be colored. Must be smth like that:[详细]
2023-04-05 01:24 分类:问答elisp dealing with closure
I\'m trying to write a macro that can generate a set of functions that I can use to access project directories in a more efficient fashion. If you look at the following macro, you should have a good i[详细]
2023-04-05 01:12 分类:问答Emacs: how to write a defun which acts on region, but acts on point if there's no region?
I write a simple defun for a region, and I want to apply it even if there\'s no region – i.e. call it with no selection at all. I thought I could do something like the following:[详细]
2023-04-04 11:23 分类:问答Overload a Keybinding in Emacs
I\'ve looked through a number of other questions and el files looking for something i could modify to suit my needs but I\'m having trouble so I came to the experts.[详细]
2023-04-04 09:58 分类:问答