elisp
Importing files in Emacs Lisp/Emacs configuration file in the same directory
I have a couple of emacs configuration files. I was going to consolidate them down into a common file and then a couple other files that import the common file. Then have their own functions. I was ju[详细]
2023-03-31 17:58 分类:问答How can I define functions taking "blocks" as parameters in elisp?
In Ruby, a method can take blocks/lambdas and enable you to write constructs that kind of look like they\'re part of the language. For example, the times method on the Fixnum class:[详细]
2023-03-31 16:30 分类:问答How to access an element in a list?
I h开发者_运维知识库ave this list: (\"x\" \"y\" \"z\") How do I extract an element from the list? (In this case I\'m interested in the first element in the list, but I\'m looking for a general solu[详细]
2023-03-31 16:16 分类:问答having two functions executed with one keyboard combo
I\'m trying to have C-<return> map to move-end-of-line then newline-and-indent In my .emacs I have been playing around with the following:[详细]
2023-03-31 09:19 分类:问答Elisp: cannot grasp effect of setq and sort
When evaluating the following code in Emacs, I get (2 3) as the final value of x. I开发者_运维知识库\'d expect (1 2 3). What am I missing?[详细]
2023-03-31 03:06 分类:问答Emacs. Truncate long lines
I remember I found a sample .emacs-file once, where long lines were truncated. I know about the build-in modes, but this mode behaved differently. It kept every line the same length, and didn\'t fill[详细]
2023-03-31 02:44 分类:问答Emacs auto-complete error: Symbol's value as variable is void: ac-modes [duplicate]
This question already has an answer here: Emacs: Symbol's value as variable is void (1 answer) Closed 5 years ago.[详细]
2023-03-29 05:44 分类:问答Why am I getting one too many tabs in Emacs?
init.el (setq make-backup-files nil) (add-to-list \'load-path \"~/.emacs.d/\") ; Add all top-level subdirectories of .emacs.d to the load path[详细]
2023-03-29 02:25 分类:问答Emacs incorrectly looking for .el instead of .elc
I recently started using django-html-mumamo-mode which is part of nXhtml in emacs and everything seems to work except that when I start writing javascript code in an html page, I get the warning/error[详细]
2023-03-28 21:45 分类:问答How can I get 'next-error' to copy the line causing the error into the kill-ring?
I tried running (list (next-error) (kill-ring-save (line-beginning-position) (line-end-position))) immediately after M-x compile[详细]
2023-03-28 17:14 分类:问答