A text editor, usually characterized by its extensibility. Often described as "the extensible, customizable, self-documenting, real-time display editor."

learn more… | top users | synonyms

1
vote
1answer
72 views

Emacs change font of a single word (or sentence), not of the whole buffer

Somehow I don't find a way of changing the font size of a specific string of text. I know how to do it globally or temporarily for the whole buffer.Changing the default font is not the issue here. ...
3
votes
1answer
421 views

Colors for menu bar and the scroll bar on emacs 24

I'd like to change the colours of the menu bar and the scroll bar of emacs 24. The instructions of EmacsWiki (the above links) do not work. This might be because I am using emacs 24. According to ...
1
vote
1answer
48 views

Cannot open slime-helper.el

I'm trying to install slime on a debian wheezy distro 64 bit called Crunchbang, trying to install common lisp, followed this tutorial, although the title says it's for windows, I installed it on linux ...
2
votes
1answer
216 views

Org-mode: Inserting (advanced) LaTeX equations for HTML expot

I'm using org-mode as working environment, and so far has been extremely useful. One of the wonders of it is the versatility of exporting... I can export to LaTeX or HTML or ODT files from the same ...
1
vote
2answers
37 views

Counting numbers in Emacs

Say I have the following long line selected in Emacs. How can I cound how many numbers (or NaN) I have? I tried M-x count-words but it yields the wrong number. It says 1 line 1135 words and 3565 ...
3
votes
1answer
82 views

Appending values to environment variables from within Emacs

I am new to Elisp. I would like to do the following in my init file: ; Retrieve the value of LD_LIBRARY_PATH ; Append '/path/to/some/lib/:'to it ; Save the new value of LD_LIBRARY_PATH So far I ...
2
votes
2answers
100 views

Sourcing a shell script from within Emacs

I would like to source a shell script that changes my environment variables from within Emacs. That is, I would like the shell script to change the environment in which Emacs runs, and I would like to ...
2
votes
1answer
63 views

Shortcut for adding `org-mode` environment

I'm using org-mode for organizing myself (very useful so far!). However, it is kind of annoying writing #+begin_comment ... #+end_comment each time I'd like to insert an environment. ...
1
vote
0answers
238 views

php indent in web-mode with Emacs

I'm using Emacs web-mode and write a setting for it like this. (require 'web-mode) (add-to-list 'auto-mode-alist '("\\.php\\'" . web-mode)) (defun web-mode-hook () "Hooks for Web mode." (setq ...
2
votes
1answer
23 views

`(kill-line 0)` kills physical line even with global-visual-line-mode in Emacs

I define backward-kill-line like this. (defun backward-kill-line () (interactive) (kill-line 0)) And I'm using global-visual-line-mode. kill-line kills visual line, but this backward-kill-line ...
1
vote
0answers
147 views

How can I use my own snippets by using yasnippet in Emacs?

I installed yasnippet and it works fine with default snippets.But I can't add my own snippets. To expand a string php to <?php ?>, I've done like this. I wrote in my init file like this. ...
1
vote
0answers
164 views

Emacs ansi-term with zsh: error in process filter. Invalid face: unspecified

I have the latest stable versions of Emacs (24.3) and of Zsh (5.0.2). I can run Zsh without problem from a terminal (e.g. ITerm2), but if I try to run it from M-x ansi-term I get the error: Emacs ...
2
votes
1answer
74 views

In emacs are any key sequences available for user macro bindings in all modes

I have recently started using org mode in emacs, but my macro bound in my initialisation file to C-x C-k T no longer works because this combination is used by outline mode which underpins org mode. I ...
2
votes
1answer
83 views

Open clickable text in emacs in new/neighboring window

Currently I have a mode (magit to be precise) when I have clickable text switches buffer to the file. However I'd prefer sometimes to open in new or neighboring window. Is it possible to do it? PS. ...
6
votes
1answer
688 views

What's the right value of $TERM for emacs' ansi-term, especially if 'eterm-color' isn't available after SSH?

I'm currently setting $TERM to xterm-256color: if [[ -n "$EMACS" ]]; then export TERM=xterm-256color alias emacs="emacsclient --no-wait" export EDITOR="emacsclient --no-wait" export ...
0
votes
1answer
59 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
1answer
400 views

Can I Change Caps Lock to Hyper/Additional Modifier?

In Arch Linux, I have Caps Lock function as an alternate Ctrl: In the console through a personal keymap, and in X through a "kbd" option in xorg.conf. I've already researched a little about changing ...
2
votes
1answer
87 views

Configuring Org-mode to open PDFs with evince

I'm starting to use org-mode to export text to LaTeX. My problem is that it opens the generated PDF with ebook-viewer (it is a EPUB, CHM reader) instead of using evince. Question Does anyone know ...
0
votes
0answers
222 views

Emacs alternate editor client server start

How can I get Emacs to start in server mode with the alternate editor? From this conversation, I was able to enable the server with the alternate editor. However, I just re-installed emacs and I am ...
4
votes
2answers
202 views

Emacs shell mode makes $PS1 different

I have a custom $PS1 variable that looks like this on my command line: And on emacs using M-x shell unfortunately looks like this: Here is my $PS1 variable export PS1='\[\e]0;\u@\h: ...
1
vote
1answer
576 views

Corrupted gnu-screen session not displaying UTF-8 correctly

(Edited to clarify the role of Emacs in the problem with the display.) My current gnu-screen session has gotten corrupted somehow, and Emacs fails to display UTF-8 characters properly. I've ...
2
votes
1answer
140 views

Emacs Key-binding and the TERM variable

I changed the value of TERM to screen-256color from xterm and it effects the key-bindings in Emacs. Mainly the bindings that use the arrow keys now inserts A,B,C,D instead of running backward-word and ...
1
vote
1answer
57 views

Emacs - Strange Whitespace

(I posted this same general question here on StackOverflow thinking it had something to do with my emacs configuration, but after following a comment there, I think it is exclusive to urxvt) My ...
2
votes
1answer
60 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 ...
2
votes
1answer
69 views

How can I run emacs with no shell?

I'm administrating an Arch Linux server. How can I securely add emacs to my /etc/sudoers editor variable? Currently I have "emacs" but that allows M-x shell. Basically, I want something like rvim, ...
3
votes
1answer
646 views

Make hunspell work with emacs and german language

I want to make hunspell work with emacs24 and a german dictionary on a ubuntu 13.04-box. To do so I installed hunspell and hunspell-de and added the following to my .emacs file: (setq ...
1
vote
2answers
116 views

Setting default emacs font not saving (built from source OS X 10.8)

I built emacs 24.3 from source on OS X 10.8 and when I attempt to set the default font with Options -> Set Default Font -> [font] My choice is not saved next time I open emacs. I'm attempting ...
1
vote
1answer
112 views

How to know I am using vi or emacs input?

Crash shell allows to specify the command line editing mode to vi or emacs. What will be the difference in these input methods? I am not asking about the internal features.
1
vote
2answers
152 views

Emacs 24 not finding system fonts

Emacs doesn't offer me the possibility of installing several of the system fonts that I have. It only offers Courier and Lucida. Other programs, like LibreOffice, have no problem in using my system ...
2
votes
1answer
56 views

How to apply org-todo to multiple items

Consider an emacs org-mode file like this: ** item 1 ** item 2 ** item 3 ** item 4 Now I can apply org-todo to every item separately (bound to C-c C-t). But how can I apply it to every item in ...
1
vote
0answers
50 views

How to run Emacs nnrss-* commands

Specifically, I want to run nnrss-opml-import command, which should import an OPML file. Trying to run the command with M-x nnrss-opml-import tells me the command doesn't exist. I want to experience ...
3
votes
1answer
821 views

Visualizing ansi color escape codes in log files correctly in Emacs [duplicate]

I have some log files that have ansi-color codes in them. When I open them in Emacs I see garbage:           As an example, I run the following: ls --color=yes -ald -- * ...
1
vote
0answers
37 views

How to use the same emacs daemon for user and root accounts?

I often work in both user and root accounts but I don't like that I have two emacs daemons running for each user. Is it possible to set the same, only one emacs daemon for user's and root's clients?
2
votes
1answer
136 views

Emacs - finding the cursor in multiple windows

I've started splitting my emacs frame into two side-by-side windows, but often I'm unable to tell at a glance which window the cursor is currently in. I've bound the other-window command to a special ...
0
votes
1answer
77 views

Emacs key problem

I am using Cygwin to connect to an Ubuntu installation, and for some reasons my Ctrlh for the help has been remapped to CtrlDel. When I actually type Ctrlc,h I get the error: No operation mapped ...
5
votes
1answer
218 views

Linux VT Emacs in tmux, breaks color and cursor

TERM is set to screen. I tried with screen-256color, but then the colors went really nuts. I also tried xterm, linux, and some others (that I could think of, not really thinking) but screen is the ...
3
votes
1answer
1k views

Showing type of newline character in Emacs

How can I have Emacs display the type of new character? I am looking for something similar to what Notepadd does (see below). I read that Emacs comes with M-x whitespace-mode but this doesn't seem to ...
2
votes
3answers
74 views

Emacs paste into search (C-s) field?

Let's say you are writing code in one of Emacs window and then want to search for a string that you have copied manually (M-w) some time before. The problem is, that by default, when you issue C-s, ...
1
vote
1answer
102 views

Where is the Ctrl+/ (^/) bash shortcut for undo defined?

I can not find the mapping in bind -p nor in stty -a. Also, it only works in the terminal emulators I've tried (xterm, konsole, gnome-terminal) and not in the linux system console. I think it's ...
2
votes
1answer
168 views

Use emacs as an editor within itself (ansi-term)

I'm using M-x ansi-term within emacs, and a lot of the tools I use (not only git) are opening editors using $EDITOR. Because running emacs within itself is kind of annoying, I'd like to configure my ...
0
votes
1answer
116 views

emacs-nox doesn't load the files I ask it to at command line

I have a few different Ubuntu installs and this is the first time I've experienced this. I have emacs-nox installed, because I hate graphical versions of emacs. Normally when I type emacs test.txt ...
1
vote
0answers
209 views

What would make the Simple Emacs Spreadsheet more newbie-friendly?

I am familiarizing myself with ses and I find that it's not very welcoming towards a new user. I am preparing to submit some sort of bug report or improvement suggestion, but I'm not really sure what ...
0
votes
1answer
178 views

Emacs 24 and linux distributions

I just downloaded Ubuntu 12.04 LTS and was very disappointed that emacs 24 was not yet supported for it. I found some links where you could build it from source, but regardless I am looking for a ...
0
votes
2answers
50 views

Emacs ssh connection abbreviations [closed]

When connecting to a remote server via ssh in bash I use abbreviations in ~/.ssh/config file: Host aaa HostName aaa.ssh.myhost.com User user1 So I can connect to aaa.ssh.myhost.com, typing: ssh ...
4
votes
2answers
281 views

Getting wmctrl to work with multiple Emacs windows

I'm trying to write a script that switches focus to Emacs. This is what I have: #!/bin/bash wmctrl -a 'emacs@pat-ubuntu-desktop' It works fine when there is only one Emacs window (or "frame," in ...
-2
votes
2answers
270 views

Joe,pico,emacs missing

I've installed a 'linux in a box' at home using FreeBSD and Virtual Box.But when I tryed to make a C file,joe,emacs and pico give me 'Command not found'. joe z.c,emacs z.c, pico m.c are the commands ...
4
votes
1answer
114 views

Emacs: make portion of buffer readonly

I sometimes edit files in emacs where portions of the file are documentation or something else that shouldn't be edited, and another portions are "play areas" where I'm free to edit and create new ...
0
votes
1answer
44 views

Keyboard shortcut to switch files in one Emacs instance?

I've multiple files opened in an Emacs client. Right now, to toggle between files, I've to click on the file name at the bar below in the editor. Any keyboard shortcuts for switching between files?
0
votes
2answers
109 views

Emacs “jump to class definition” functionality?

I want to jump to a class file "A" from another file "B" which defines objects "A". In eclipse, it is done using F3. Is there a way to achieve this in emacs?
1
vote
1answer
147 views

How to open all the files in a directory, using terminal, in emacs?

I've 4 java files in a directory, which I want to work with in emacs. How do I open them all with one command?