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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
62 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 ...
askman's user avatar
  • 33
0 votes
1 answer
610 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 ...
Steve's user avatar
  • 3
0 votes
1 answer
50 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 ...
ironsand's user avatar
  • 5,135
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)) (...
MajorBriggs's user avatar
  • 1,231
3 votes
1 answer
357 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?
MajorBriggs's user avatar
  • 1,231
0 votes
1 answer
146 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 ...
Joseph Will's user avatar
4 votes
3 answers
935 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 ...
user avatar
0 votes
1 answer
989 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 ...
user1854496's user avatar
2 votes
1 answer
184 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-...
Stefano Palazzo's user avatar
3 votes
1 answer
184 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 ...
Hongxu Chen's user avatar
  • 5,838
2 votes
0 answers
182 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 ...
Mark Longair's user avatar
1 vote
1 answer
90 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 '(("..." "…") ;...
Emanuel Berg's user avatar
  • 6,833
1 vote
1 answer
226 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" ...
Silverrocker's user avatar
  • 1,825
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 ...
Emanuel Berg's user avatar
  • 6,833
1 vote
1 answer
144 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 ...
Emanuel Berg's user avatar
  • 6,833
7 votes
1 answer
3k views

Defining key sequences in Evil-mode Emacs

I couldn't find any instructions on defining key sequences in the Evil doc. The example given by the developers only covers a single key. (define-key evil-normal-state "w" 'foo) What do I need to ...
Mark T.'s user avatar
  • 73
2 votes
1 answer
1k views

Emacs: query-replace, regular expression, reuse of search result

How do I combine something like query-replace with a regular expression search-and-replace that in part reuses the search result? In my case, how to transform The programmers are "sort of" ...
Emanuel Berg's user avatar
  • 6,833
2 votes
1 answer
164 views

In terminal, I can search to end of log faster than the data gets there

[The Question] Is there some way to have the pipe/tee/write combo write lines immediately? ... if it can be done, what is the trade-off? [The Backdrop] My script sends a keypress to the terminal, ...
Peter.O's user avatar
  • 32.7k