Emacs is a powerful text editor with an embedded Lisp environment, which allows for great extensibility. Emacs is a lisp environment with many features that also make it a powerful text editor.

learn more… | top users | synonyms

1
vote
0answers
72 views

Have fill-region break Python code into multiple lines to stay under 80 columns in Emacs

How can I get Emacs' indent-region command to re-indent def foo(): my_favorite_object_ever = ObjectConstructor(cool_parameter=4, not_cool_parameter=5) as def foo(): my_favorite_object_ever ...
0
votes
1answer
58 views

Emacs: How do I use flymake-cursor in Evil's normal mode?

I'm a Vim fan trying out Emacs with the Evil mode. After configuring FlyMake to use the flake8 command, I have nearly the same editor configuration in Emacs that I'm used to in Vim. The only problem ...
1
vote
1answer
47 views

How to read global-set-key in .emacs file

from http://www.emacswiki.org/emacs/WhiteSpace, it has this setting to (global-set-key "\C-c_w" 'whitespace-mode) (global-set-key "\C-c_t" 'whitespace-toggle-options) (global-set-key "\C-c=w" ...
0
votes
1answer
76 views

Different font size when running emacs and emacsclient

In my .emacs file, I setup font size like: (set-default-font "Source Code Pro 10") If I run emacs as standalone program, i.e. emacs aFile.c, the font size looks correct. But if I run emacs using ...
0
votes
2answers
213 views

Lisp error: (error “Lisp nesting exceeds `max-lisp-eval-depth'”) when using cl- functions

I recently moved computers and upgraded to Emacs 24.3 (from 24.2) yesterday. Since then, I have been receiving what is essentially a stack-overflow error: Debugger entered--Lisp error: (error "Lisp ...
1
vote
1answer
62 views

How can I setup emacs to change space to TAB character for indent? [duplicate]

I am writing code for Linux kernel driver. The coding standard said The first rule that everyone needs to follow is to use the Tab character rather than spaces, to indent code. Also, the Tab ...
0
votes
2answers
60 views

Emacs (gui) font resets on startup

I have tried the following at the very end of my Emacs init file: (set-frame-font "DejaVu Sans Mono-6") (set-default-font "DejaVu Sans Mono-6") (set-face-attribute 'default nil :font "DejaVu Sans ...
0
votes
1answer
41 views

emacs -nw and emacs has different background color

In my .emacs, I am using this theme: (add-to-list 'custom-theme-load-path "~/bin/emacs-theme") (load-theme 'monokai t) It works when I open emacs in a standalone window: emacs afile.c. But when I ...
0
votes
2answers
49 views

How to use emacs to format my code?

I use the following in my .emacs for my c code formatting: (setq c-default-style "linux" c-basic-offset 4) And I try to format my region by doing: M-x indent-region But my code does not get ...
1
vote
0answers
71 views

How to send .gz file as attachment from emacs using wanderlust?

I already found out to send attachments with wanderlust through M-x mime-insert-encoded-file and answering some questions. This works. But how can I send a .gz compressed file as an attachment? M-x ...
1
vote
0answers
97 views

In Emacs, how can I enable a minor mode unless another is active?

I am trying to use both minimap and fill-column-indicator modes in emacs, with fci-mode enabled for all buffers but the minimap. I've adapted code from this similar answer, and made this for my ...
2
votes
0answers
694 views

Difference between Emacs Starter Kit, Prelude and Graphene

Emacs Starter Kit, Prelude, Graphene are various customization packages for Emacs. How are they different? What are their emphasis and strengths in comparison? Can they all be installed together?
0
votes
1answer
102 views

Trouble running `emacs --eval` from Puppet

I want to automate installing Emacs packages with Cask, Puppet, and Vagrant. Source https://github.com/mcandre/mcandre-ubuntu Steps to reproduce I can do this manually in Emacs on my Mac: $ emacs ...
1
vote
1answer
30 views

How do you turn back on the menu-bar permanently having installed the emacs-starter-kit?

I'm just trying to pick up emacs after 20 or so years away as it appears to be the best way to use Clojure and Overtone. Having installed the emacs-starter-kit I have lost the menubar which was ...
1
vote
1answer
89 views

How can I get around the length limit for org-mode files? (disabling linum-mode for orgs only)

Org-mode starts to choke around 4000 lines with a really simple outline (I've seen crashes as well as generally slow behavior). This is depressingly short. What can I do to alleviate this? Is there a ...
1
vote
1answer
47 views

Safely reload files which are changed on disc

I often perform the following workflow: Save file I am working on Do 'svn update', which pulls update from server and merges in my changes Go back into emacs At this point emacs tells me the file ...
3
votes
0answers
57 views

Is it possible to clock in and out of multiple tasks in org-mode?

I get errors if I try to clock into multiple tasks in org-mode. There don't seem to be any references to this use case in the documentation. Can I multi-task? What breaks if I do? Bonus: is it ...
4
votes
1answer
389 views

Emacs key for Home & End

I'm running Emacs in urxvt with zsh as shell: ~ % echo $TERM && echo $SHELL rxvt-256color /bin/zsh ~ % My current problem is that I can't get Home key & End key working properly in ...
1
vote
1answer
187 views

How can I use a particular emacs style?

How can I use this emacs style in my emacs? And how can I format all my existing code using this style?
1
vote
2answers
76 views

Faster navigation or switch between browser tabs

Is that such a plugin for chrome or other webbroswer that supports tab navigation by typing tab names? My browser constantly has a lot of open tabs. It makes tab switching really difficult. I have to ...
0
votes
1answer
107 views

Emacs xkcd installation needs JSON 1.4, not found in ELPA

I tried to install the xkcd emacs package (where you can view an xkcd comic in emacs) and got the following error: Need JSON 1.4, but only 1.2 is available I tried to get JSON 1.4 but I cannot ...
0
votes
1answer
27 views

How to hide Info Mode Header Line in Emacs ?

I am trying to read some info manuals in Emacs , and there is Prev Next Up showing up all the time . Does anyone know how to remove it ? I tried a few things mentioned in this link , but it doesn't ...
0
votes
1answer
205 views

How can I get the frame title from Emacs into the window bar of ConEmu?

I'm using ConEmu to run emacs (text-based) in a tab. I'd like to have the frame title appear in the Window Title Bar much in the same way my PowerShell prompt does. Has anyone gotten this to work? ...
0
votes
1answer
147 views

emacs tramp working with gnome-keyring-daemon

Right now I have gnome-keyring-daemon set to start at login. If I run emacs -q and then open a file on a server using M-x find-file and then enter a file on a remote server such as ...
1
vote
1answer
52 views

Emacs — converting output of the one-line (M-x calculator) to money

Does the Emacs one-line calculator (M-x calculator) have a built-in way to convert the result to money -- e.g., convert 3335856.7 to 3,335,856.70 ? Before writing my own modifications using the code ...
2
votes
1answer
771 views

bash vi mode: What does # -*- mode: ruby -*- # vi: set ft=ruby : mean?

I'm looking through some random code, and at the top of it, it says this: # -*- mode: ruby -*- # vi: set ft=ruby : What does this mean? I know it's a simple question, but I couldn't find it out ...
1
vote
3answers
336 views

“SMTP protocol error” when sending mail in emacs

I'm trying to configure emacs to send mail through an SMTP server, but so far, I've not been successful. Here's the output I'm getting: 220 __SMTP.SERVER__ ESMTP Sendmail ...
3
votes
2answers
443 views

Emacs does not redraw properly inside VirtualBox

I am running Emacs inside a virtual machine, and are experiencing redrawing problems when scrolling or adding/removing lines of text. It seems only a small portion of the window is being redrawn, ...
2
votes
1answer
105 views

How do I add a `\label` to a figure in an Org-Mode file that I'm going to export via LaTeX?

How do I add a \label to a figure in an Org-Mode file that I'm going to export via LaTeX? example.org: #+CAPTION: This is the caption #+NAME: fig:org_label [[./figure.png]] This is a link to the ...
2
votes
1answer
172 views

Emacs dired buffer reuse when moving to previous directory

I am following this wiki suggestion to set up Emacs so that, i can move forward and backwards in dired mode without creating new buffers. Using the a key together with the (put ...
0
votes
1answer
105 views

Remove all traces of emacs and start over

I've been trying to install PolyML in Emacs on my Mac in OSX but I can't get that or SML-mode to work. I've tried the builtin emacs, the gui version and the one from homebrew. Neither poly or sml ...
1
vote
2answers
398 views

How to load emacs org-mode settings during startup?

I'm trying to use a custom setup for org-mode 8.2 on Windows 7, but it does not work as expected. My ´Emacs`version: GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN What I tried: ...
0
votes
1answer
162 views

Export org agenda views periodically in Emacs

To export org agenda views in a text file for further processing, I run (org-batch-store-agenda-views) periodically as an Emacs batch job run by cron. Because there is some overhead in starting an ...
1
vote
0answers
36 views

How to capture from sites like github?

I'm using the below bookmarklet with org-protocol/emacsclient to journal webpages (whitespace added): javascript:location.href='org-protocol://capture://'+ ...
0
votes
1answer
98 views

Emacs showing grey background where there are no characters

Since a couple of days, my Emacs is showing a light grey background on the parts of the window that are not covered by characters (see screenshot). Text appears normally black on white (as per ...
5
votes
4answers
76 views

How to identify the emacs keybinding for something in the GUI?

I started using mu4e for email in emacs recently, and while I was successfully able to configure my email and get comfortable with the general navigations for keys, I can't seem to find the good old ...
0
votes
1answer
26 views

Emacs tramp, version control and toggle-read-only

When using emacs 24 w/tramp on remotely RCS-controlled files, the toggle-read-only function (^X^Q) does not issue the usual "This file is under version control, blah, blah". Instead it flips the ...
1
vote
1answer
47 views

Icicles's icicle-buffer doesn't take into account the current buffer

Icicles's icicle-buffer doesn't take into account the current buffer from which it was invoked. How can I disable this feature?
1
vote
1answer
28 views

How to use persistently use Icicle's multi-buffer search results?

After successfully being about to do intricate searches using Icicles. I now have a problem with being about to use those results. I found it pretty convenient in multi-occur-in-matching-buffers that ...
1
vote
1answer
128 views

How can I drag and drop text from one Emacs window into another?

Is it possible to select text in one Emacs window and then drag-drop it into another window of the same Emacs session? If so, how can it be done?
2
votes
1answer
38 views

Emacs bind single shift key

I know that the shift key is somewhat special, but sometime it turns out this key is very handy when we have some key binding conflicts. Currently I want to bind the single left shift key to replace ...
0
votes
1answer
38 views

When I've marked a message as read in Gnus, how push that change to the server?

I've hooked up Gnus to my Gmail account and I'm able to send mail just fine (using gnutls). However, when I mark messages as read, I cannot see my changes reflected in Gmail's web interface. How can I ...
2
votes
1answer
169 views

how to notify a program of another program? dll? directory? path?

I am trying to experiment with GNUS email in Emacs, in Windows (EDIT: x64 bit). I've got it to work in Ubuntu, but struggling with it in Windows. From ...
1
vote
0answers
172 views

Sublimetext 3 Emacs indentation

I'd like to have an indentation like EMACS on Sublimetext when editing ONLY C source code. More specifically I'd like sublime text add 2 spaces of indentation after "{" like in the following example ...
0
votes
1answer
51 views

Emacs / OSX / Calendar-Mode: Ideas for more spacing between dates

I'm looking for some ideas please to get some more spacing between dates in calendar-mode using Emacs on OSX 10.6.8 (Snow Leopard). Also, any suggestions regarding how to make this buffer-local (if ...
0
votes
2answers
30 views

Shortcut in emacs to go to lisp definition directly

You can view the help of a lisp function with C-h f, then hit enter on the underlined file name. Any way to do this with a customized keystroke?
1
vote
1answer
240 views

Emacs right click context menu on Mac OS

Is there any good reason that Mac Emacs does not bind the right mouse click to the context menu. Instead, ctrl-mouse-left-button must be clicked. Any customization to fix that?
0
votes
1answer
43 views

How to keep org-mode links from stretching over text in unspaced languages?

In Japanese and other languages, there are no spaces in a paragraph. Org-mode interprets this as a continuation of a link description, which messes up the semantics and formatting. Example: ...
0
votes
3answers
354 views

File management in Emacs

I'm switching over from Vim to Emacs and have one requirement that I haven't been able to find a solution for. In Vim I used Nerdtree to display a view of the file system in a different window to the ...
1
vote
1answer
335 views

How to enable flyspell in org-mode by default

In emacs, I want flyspell-mode to be enabled by default whenever I am in org-mode. Based on different examples I've seen in emacs documentation I've tried adding various lines to my .emacs file one ...