Questions tagged [elisp]
Emacs Lisp is the extension language for the GNU Emacs text editor, and in fact, most of the functionality of Emacs is implemented using Emacs Lisp. Users generally customize Emacs' behavior by adding Emacs Lisp statements to their .emacs, or writing separate packages.
18 questions
0
votes
1
answer
72
views
Colorful notes in emacs
Similar to org mode, for taking colorful notes in Emacs, I would like to define some special characters (used in the beginning of the lines) to tell Emacs which colors (foreground/background) should ...
0
votes
1
answer
719
views
Disable annoying comment highlighting in emacs [closed]
I have started programming scheme, and I noticed the scheme minor mode highlights comments in the most obnoxious way possible when using solarized dark (color-theme-solarized). This also occurs on ...
0
votes
1
answer
64
views
how to write a elisp function like this
I'm trying to write a elisp function like this:
(setq lst '(("abc" . "c") ("cde" . "f")))
(foo "a" lst) ;=>"c"
(foo "b" lst) ;=>"c"
(foo "c" lst) ;=>"c"
(foo "d" lst) ;=>"f"
I know if the ...
2
votes
1
answer
2k
views
Color of emacs margins
With the following in my .emacs I get narrow margins in text-mode buffers:
(defun my-set-margins ()
"Set margins in current buffer."
(setq left-margin-width 30)
(setq right-margin-width 30))
(...
3
votes
1
answer
413
views
Hide "Mail" in emacs mode line
This is small stuff but I haven't been able to figure it out:
How do I hide "Mail" from the mode line in emacs?
0
votes
1
answer
162
views
Run emacs elisp command with next word as argument
How can I tell emacs to run my own script (which can be elisp too or something in Perl, BASH or whatever), and use the next word after the mouse cursor as argument, or maybe using a group of marked ...
4
votes
4
answers
1k
views
Emacs - Changing show-paren-mode Areas
I like show-paren-mode in Emacs, but I would really like to change the highlighting behavior for closing brackets.
That is, I want the opening bracket to be highlighted when the point is on the ...
0
votes
1
answer
1k
views
How do I set key binding for set mark in emacs?
I'm new to emacs and newer to lisp
I'm trying to set Meta + spacebar to set the mark for highlighting text (at current cursor position).
searching around online and experimenting I've ended up with ...
2
votes
1
answer
212
views
How do I skip special buffers when killing the current buffer?
I have some code in my .emacs that prevents it from showing some pre-defined special buffers when I'm using previous-buffer and next-buffer:
(defadvice next-buffer (after avoid-messages-buffer-in-...
3
votes
1
answer
197
views
How to attach elisp function source code in Emacs?
I could use M-x find-function to find the source code of some elisp functions if the function is not written in C code.
But since I am using a Debian binary package of Emacs , some of the source ...
2
votes
0
answers
213
views
Why isn't Gnus scoring emails based on the To: or Cc: headers?
I use Gnus v5.13 in GNU Emacs 24.1.1 to read my email, and I'm having a trouble getting a simple score file to work. Essentially, I want any mail that's sent to (or copies) a particular email address ...
1
vote
1
answer
120
views
Emacs: mode-local macro with dashes and dots
In Emacs, how can I make a macro, that is local to the HTML mode, and uses dashes and dots? Take a look at the Elisp below:
(define-abbrev-table 'html-mode-abbrev-table
'(("..." "…") ;...
1
vote
1
answer
241
views
emacs change point color to current foreground
I'm trying to customize my emacs so that the point color is the same as the foreground on of the character I'm standing on.
I have this now:
(defun fixpoint ()
"awesome stuff happening to point"
...
5
votes
2
answers
2k
views
Emacs: mute messages ("echo area")
I do lots of automatizing in Emacs, by stacking commands that I know from using manually. That is a method I recommend, because it doesn't take much effort: you use Emacs as you ordinarily would, and ...
1
vote
1
answer
171
views
Emacs function on set of files
Is there a way implemented in Emacs to apply a function on a set of files? (Or, if not, do you know of such an extension?)
For example, if you have a project in a directory (say, scripts to compile ...