Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 2421

A text editor, usually characterized by its extensibility. Often described as "the extensible, customizable, self-documenting, real-time display editor." There is an Emacs-specific SE site for specialized questions.

8
votes
To instrument an Elisp function for debugging, load its source code, put point inside the function, and type M-x edebug-defun. Then, when the function is executed, the debugger will activate automati …
answered Oct 26 '10 by cjm
6
votes
To quote the Emacs manual on The Init File: When Emacs is started, it normally tries to load a Lisp program from an initialization file, or init file for short. This file, if it exists, specifies … how to initialize Emacs for you. Emacs looks for your init file using the filenames ~/.emacs, ~/.emacs.el, or ~/.emacs.d/init.el; you can choose to use any one of these three names. Here, ~/ stands …
answered Mar 28 '11 by cjm
2
votes
Emacs 24 uses the LOCAL parameter of add-hook instead of make-local-hook. (I believe that was added in Emacs 21.1, but make-local-hook wasn't removed until Emacs 24.) Try this: (add-hook 'emacs
answered Jan 19 '13 by cjm
7
votes
Emacs won't need to use spaces to reach each level of indentation. But if you do that, everybody else who has to work on your code (and uses the standard 8-character tab stops) will get annoyed. I …
answered Oct 6 '11 by cjm
2
votes
I'm not clear on just what your "dummy cursor" would do other than alter the color of the text at its position. If that's all you want, you could do that with overlays or text properties. If I'm und …
answered Feb 22 '13 by cjm
5
votes
Emacs doesn't come with a mode that can create all those effects (although you can get some of them with Enriched mode). You'd have to write Lisp code to create the page you want. The actual … startup page is created by the function fancy-startup-screen in the file startup.el. You can look at that to see how it does what it does. You'll probably want to read the Emacs Display chapter of the …
answered Jan 29 '12 by cjm
2
votes
From the Emacs manual, section 12.3.1 Using the Clipboard: Prior to Emacs 24, the kill and yank commands used the primary selection, not the clipboard. If you prefer this behavior, change x …
answered Mar 2 '14 by cjm
4
votes
It's possible to have multiple versions of Emacs installed on the same machine. Only Emacs 23 would load files from /usr/share/emacs23/site-lisp/. All versions of Emacs would load files from /usr … /share/emacs/site-lisp/. Generally, you just use /usr/share/emacs/site-lisp/, unless there's some reason the code applies only to a particular version of Emacs. To see where your Emacs is loading code from, type Control+h    v load-path Enter. …
answered Jan 6 '12 by cjm
59
votes
shell is the oldest of these 3 choices. It uses Emacs's comint-mode to run a subshell (e.g. bash). In this mode, you're using Emacs to edit a command line. The subprocess doesn't see any input … until you press Enter. Emacs is acting like a dumb terminal. It does support color codes, but not things like moving the cursor around, so you can't run curses-based applications. term is a terminal …
answered Dec 9 '13 by cjm
7
votes
You get this error if ~/.emacs.d exists but is not a directory readable by your user. From the partial output of ls -la ~/.emacs.d you gave, it appears that you somehow managed to get a .emacs.d dire …
answered Dec 9 '13 by cjm
5
votes
Due to the fact that Control+G has to interrupt Emacs while it's doing other things (and not reading normal input), it's hardcoded into the Emacs core and can't be rebound using normal methods … on the controlling tty of the Emacs process. In short, you'd have to patch and recompile Emacs to do what you want. However, it is possible to get some of what you want. If you do (define-key …
answered Feb 17 '12 by cjm
3
votes
I don't use org-mode myself, but M-x apropos-variable org.*time turned up a couple of likely suspects. (I tried org.*date first, but that didn't produce anything useful.) It looks like you want to s …
answered Dec 5 '13 by cjm
4
votes
In Elisp, string concatenation is done with concat: (setenv "LD_LIBRARY_PATH" (let ((current (getenv "LD_LIBRARY_PATH")) (new "/path/to/some/lib")) (if current (concat new ":" current) …
answered Oct 7 '13 by cjm
4
votes
3answers
I just upgraded from an old MySQL client to mariadb-clients-10.0.21-3 on Arch Linux. After the upgrade, I no longer see a prompt when using Emacs's sql-mysql function. It seems mysql is buffering th …
asked Oct 2 '15 by cjm
1
vote
If all you need is to unset LD_LIBRARY_PATH after loading Emacs, just add (setenv "LD_LIBRARY_PATH") to ~/.emacs or other init file. If you need to swap back and forth, save the result of (getenv "LD_LIBRARY_PATH") in a variable first so you can restore it later. …
answered Oct 7 '13 by cjm

15 30 50 per page