The elisp tag has no wiki summary.
1
vote
1answer
10 views
How to override ctl-tab keybinding in textmate.el minor mode
I'm playing around with textmate.el: https://github.com/defunkt/textmate.el. A little confusing at first if you've never tried textmate, but pretty cool!
I'd like to override a binding in the minor ...
0
votes
1answer
49 views
How to stop Emacs from opening binary files
How can I make Emacs give me a warning if I am about to open a file that does not contain text?
Example:
When I edit a c++ source code in file test.cpp and compile it as an executable test in the ...
3
votes
2answers
51 views
Is there a way to print the definition of an existing function in Emacs?
I want to see the definition of an existing function in Emacs. Is this possible?
I've tried C-h d function-name RET, but it only returns the documentation string for the function, not the actual ...
1
vote
1answer
35 views
How to prevent delete confirmation in Emacs Dired?
I type d followed by x, and I am prompted to confirm yes/no. I would like it to just delete, not ask for confirmation.
0
votes
1answer
80 views
Emacs face mode in local file variables
I tired to explicitly set a custom face for a file using local file variables:
# Local Variables:
# buffer-face-mode-face:'(:family "DejaVu Sans Mono")
# End:
Emacs catches up these variables, not ...
0
votes
1answer
52 views
Emacs: cannot turn on auto-revert-mode by default
There's this emacs minor-mode called "auto-revert-mode" which automatically reverts the file buffer every 5 seconds.
In my .emacs file I just have the line (auto-revert-mode 1) and nothing else, but ...
2
votes
2answers
81 views
Disallow closing last Emacs window via Window-Manager close button
I like to start Emacs as part of a login script and leave it running for the duration of my login session (which is typically weeks).
I have scripts to call emacs-client which will allow me to use a ...
1
vote
0answers
92 views
Setting default Emacs window margins
I'm trying to emulate some behavior of the darkroom-mode Emacs mode -- specifically the margins setup.
I've figured out one piece of the puzzle -- specifically, to change window margins, I can eval ...
0
votes
1answer
71 views
How to disable ecb and cedet when running emacs in terminal?
I call emacs within the terminal to do quick editing of files, and would like to bypass the long load times.
1
vote
2answers
72 views
How do I get emacs to insert text into an arbitrary file?
I'm trying to create a function that inserts text into an arbitrary file without switching to that file's buffer.
I know this could be done with echo, but is there a way to do it using only elisp?
2
votes
1answer
81 views
emacs smart html syntax highlighting
Is there a syntax highlighting mode for xml/html which supports highilghting of markup associated with given (just like for parentheses)? For example if I select 'div' markup - this 'div' and ...
1
vote
1answer
65 views
How do I get Dired to not display certain files?
To start I'd like all *~ files to not be displayed in Dired.
EDIT: The below worked:
(add-hook 'dired-load-hook
(lambda ()
(load "dired-x")
;; Set dired-x global variables ...
0
votes
1answer
47 views
How do I bind CMD+W to kill the current buffer in Emacs on OSX?
How do I bind CMD+W to kill the current buffer in Emacs on OSX? C-x k RET is unnatural and a comparatively lengthy binding compared to CMD+W.
1
vote
0answers
30 views
Copy/Yank entire Lisp form in Slime
Is there a way to copy/yank a whole a form in Slime/Emacs?
For instance, if I have the following function:
(myfunc (lst)
(myotherfunc lst))
I'd like to yank/copy:
(myotherfunc lst)
by ...
0
votes
1answer
88 views
emacs/elisp setup files when loaded
I found that the elisp (emacs elisp) doesn't seem to read .bashrc, as the PATH variable is different from the one set in .bashrc, as I asked in here. I tried to load .bashrc using 'source .bashrc' in ...
2
votes
3answers
46 views
How to get emacs to highlight and link file paths
Is there some emacs lisp code that would automatically find /nfs file paths in the buffer and highlight/link to them? So clicking on them would open that file?
Example path:
/nfs/foo/bar/file.txt
1
vote
1answer
43 views
add files opened in Emacs to GNOME's recently used document list
I there any way to automatically add files opened in Emacs to Gnome's recently used document list?
This one doesn't work as Gnome uses another file format now.
3
votes
4answers
4k views
How can I apply a color-scheme (.el file) in emacs?
I have downloaded zenburn.el that is a color-scheme for Emacs, but I don“t know how I can apply it to emacs. I am a beginner in emacs.
How do I apply my .el file to emacs? Can I do some linking from ...
3
votes
4answers
251 views
Is there any way to convert camel-cased names to use underscores in emacs?
For instance, I want to convert "CamelCasedName" to "camel_cased_name". Is there a way to do this in emacs?
2
votes
2answers
133 views
Is there a way to use C-C for copy and C-V for paste in emacs?
I know about cua-mode, but I'm specifically wanting to bind C-C and C-V (the uppercase versions) to be like the terminal in Gnome. Is there any way to do this? I tried this, but it gave me all kinds ...
0
votes
1answer
281 views
What is the preferred way to set environment variables at emacs initialization?
For instance, suppose I want to modify my PATH variable in my .emacs file. What is the best way to do this? Should I call setenv? Is there a variable I can customize? Should I call a shell script
1
vote
1answer
179 views
carbon emacs yank results in images
On the default install of Carbon Emacs on OS X, copying a file from Finder and yanking it into emacs results in just the icon being displayed.
How would I go about customizing it so it instead gives ...
5
votes
3answers
956 views
How do I complete file paths in emacs?
Say for instance I'm editing a config file and I want to type in a path. Is there a plugin for emacs that lets you complete a file path in that buffer? I've searched for this and there's like a ...