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

6
votes
2answers
2k views

How can I get emacs under windows to autocomplete paths in shell buffers using “\” instead of “/”?

I'm using emacs to work on linux, windows, osx and everything is fine except one annoying problem with shell buffers under windows. Autocompleting filenames would work great (better than standard ...
0
votes
0answers
16 views

remove spurious ending spaces when copy pasting from emacs console mode?

I'm not really sure where this comes from but it's really annoying: Using emacs in console mode, and when I want to copy from emacs and paste to another application (possibily another term) I often ...
0
votes
1answer
26 views

How to create a Mac App launcher for Emacs via HomeBrew?

I created a Mac App launcher for Emacs installed via Homebrew. The technique uses Automator. The problem with Automator is that a spinning gear goes into the taskbar each time. I'd rather not have to ...
0
votes
1answer
24 views

Defining faces for syntax highlighting in Emacs

This is a follow-up question to Adding syntax highlighting for a comment section in Emacs. I have the following face definition adapted from the definition of font-lock-warning-face in font-lock.el: ...
0
votes
0answers
14 views

Emacs Melpa and Marmalade

Does it make sense to include both Melpa and Marmalade package repositories with emacs HEAD. And if so, what is the best way to ensure that one is using the latest and/or correct package, when many ...
1
vote
0answers
14 views

Why does emacs org mode ask for master file?

When opening .org files, emacs asks for a master file. Why is that and how can I disable this feature ? I guess it is because of using latex related packages like ox-latex and ox-beamer. Is ...
0
votes
1answer
11 views

How to override a keybinding in Emacs org-mode

I just updated emacs org-mode and when visiting org files, this binding takes effect: C-TAB (org-force-cycle-archived) Cycle a tree even if it is tagged with ARCHIVE. What's the best way ...
2
votes
2answers
348 views

converting a 12MB text file with notes to orgmode compatible file?

I have a text file that contains about 200000 lines with basically notes, with the most recent notes on top of the file, and the oldest notes at the end of the file. I want to convert it to a ...
0
votes
2answers
15 views

why do I get duplicated menu items in emacs dired mode

I have two menu items for dir, mark, regexp, multiple and single on the menu bar in dired mode. While it doesn't affect the usage, but it seems something is wrong and makes me feel uncomfortable. ...
0
votes
1answer
41 views

Adding syntax highlighting for a comment section in Emacs

I have the following (defun add-c-syntax-highlighting () (font-lock-add-keywords nil '( ("\\<\\(\\-+\\)" 1 font-lock-warning-face prepend) ("\\<\\(FIXME\\):" 1 ...
0
votes
0answers
11 views

How to ignore white spaces in emacs evil surround

I learned from here http://kana.github.io/config/vim/surround.html that yss should operates on the current line, ignoring leading whitespace. But it always includes the leading whitespace on my ...
10
votes
2answers
358 views

How to interrupt emacs when control-g does not work in very large files?

I've run into some kind of O(n^2) or worse behavior when viewing very large (e.g. 128MB) files in Emacs and jumping to the end of the file. I think it may have to do with my coloring algorithm to ...
4
votes
1answer
2k views

How to easily break up a text file into pieces smaller than a threshold?

I have some text files that are 100 to 300 MB in length that I want to view in Emacs, but my Emacs gets into some performance issues opening and traversing such large files. Therefore, I'm looking ...
1
vote
0answers
12 views

how to manage images in emacs org mode

I am considering switching from zim wiki to org mode for managing collection of web page pieces. Typically it includes images and texts I copied from a web browser. The question: 1 how to insert ...
0
votes
1answer
20 views

Emacs - dired-mode - copy files/directories recursively — remote to local

Using tramp / dired-mode to access a remote shared Centos linux server -- e.g., (find-file "/ssh:lawlist@12.34.56.789:/home/lawlist/") -- I have not been able to subsequently copy files / directories ...
1
vote
1answer
13 views

what is the keys to minimise help frame of emacs

I have a small screen, I typed ? in ediff mode and the control frame enlarges to show me the keybinding. How do I minimise it to its original size after that? Thank you very much!
1
vote
1answer
25 views

How can I properly interpret M4's $# variable without starting comment syntax in emacs?

I have the following M4 macro definition: define(`printlist',`$1`'ifelse(`$#',1,,`printlist(shift($@))')') # does begin a comment in M4 syntax, but only when it isn't preceded by a $: $# is the ...
9
votes
2answers
1k views

Setting major-mode specific keybindings in emacs

In my .emacs file, I want to add a key binding for a specific major mode (setting coffee-compile-file to C-c C-c in coffee-mode). I've found a lot of instructions on using local-set-key and ...
1
vote
2answers
64 views

Org mode capture

I'm trying to make a 'class' template for org-capture. What I want is to easily make this kind of entry: * TODO <course>: Week <week> Lecture <number> SCHEDULED: %^T ** TODO ...
1
vote
2answers
20 views

Emacs opens “Messages” pane on startup

On startup Emacs now opens a pane labelled "Messages" in addition to the "scratch" pane. How can I modify my configuration to suppress this? Google seaches just seem to give me ways to suppress the ...
2
votes
1answer
23 views

Trouble with emacs .el file (Searching for program; permission denied) error

I have emacs version 24.3.1 (i386-mingw-nt6.2.9200) installed on a Windows 8.1 machine. I am trying to use the ledger.el distributed with John Weigley's ledger (version 2.6.1). While the lisp file ...
0
votes
1answer
21 views

How to remove the visual line from Python mode in Emacs

I started to use Emacs for Python and I am using this package: https://github.com/gabrielelanaro/emacs-for-python After I install it, I see this: There is a white line (like underscore) ...
10
votes
3answers
2k views

Emacs org mode as a work diary

Is emacs org mode a good choice if you want to maintain a work diary? I have tried to use it and archive old tasks (TODOs) but is there an easy way see which tasks I worked on for example last week ...
2
votes
2answers
31 views

Make Emacs open with three frames by default for OCaml editing

I wish that if I open a .ml (OCaml file), or enter Tuareg mode (a mode for OCaml programming), then the frame should be split like shown in the picture. Left is the main. Top right is secondary. ...
1
vote
2answers
344 views

emacs hangs under windows 7

after using Emacs for a while, I frequently encounter hangup issues, e.g, when I try to move the cursor, the software just freezes for ~5 second before it can response. I then used the Process ...
2
votes
0answers
24 views

How to install magit manual?

I have magit installed on my system with elpa. However, it comes without documentation, and that makes using it a hassle (since help on its mode is somewhat lacking). Is there a way consistent with ...
2
votes
1answer
64 views

Installing Emacs color theme

I've been trying to install color themes for emacs and I'm not quite sure how I can do it. I have downloaded an .el file and put it under my .emacs.d folder, then edited my .emacs file and added this: ...
10
votes
4answers
7k views

How to get code completion in emacs?

Hey, I know that emacs supports code completion. But to be honest I have never been a good FAQ reader, at least for something that I'm completely new to. So I wonder what I need to download and how to ...
1
vote
2answers
343 views

Load a theme for Aquamacs from the .emacs file

I managed to choose various themes from within Aquamacs but the problem is that if at some later point I have an error in my .emacs then the theme's setting is broken. Therefore I decided to load it ...
14
votes
5answers
4k views

How to make Emacs read buffer from stdin on start?

With Vim I can easily do $ echo 123 | vim - Is it possible to do with Emacs? $ echo 123 | emacs23 ... Emacs starts with a Welcome message $ echo 123 | emacs23 - ... Emacs starts with an empty ...
9
votes
4answers
2k views

emacs: How to return to last position after scroll/page up/down?

After issuing scroll-up or scroll-down in emacs, is there a quick way to return the point to its previous position (assuming I didn't remember to add it to the mark ring)? Alternatively is there any ...
0
votes
2answers
51 views

How to configure AUCTeX in Windows 7?

Help me, please! This is my 3rd attempt at a clean install of EMACS/AUCTeX in Windows 7. I'm following Joachim Schlosser's installation guide to AUCTeX but I'm getting confused at least on 2 points. ...
0
votes
0answers
17 views

Why doesn't CentOS 6.5 emacs RPM get libotf correctly?

I'm aware that there was a problem with the Red Hat 6 RPM for emacs such that one of its dependencies (libotf) appeared to be satisfied by Open MPI, but it couldn't use the library (see Red Hat bug ...
1
vote
2answers
27 views

Updating the emacs style Time Stamp comments in vim

How can I implement this emacs auto time stamp in vim? I have the following string at the top of a file: // Time-stamp: <> Here // are comment characters. What do I need to do so that ...
3
votes
3answers
2k views

How to copy and paste between cygwin's vi/emacs and windows clipboard?

I tried to paste what I copied in windows clipboard into cygwin's vi or emacs, and it doesn't seem to work with yy (vi) or M-w (emacs). Is there a way to do it? I learned that /etc/clipboard has the ...
4
votes
2answers
510 views

How to perform search and replace in lots of files with Emacs at once?

I'm looking for a solution to how to perform a search and replace in all files in a directory using Emacs.
0
votes
3answers
981 views

emacs tells me directory is write-protected

I have come up with an issue when I tried to save a file. I managed to write the intended file but then when I try to save it with the command Ctrl + x, Ctrl + s the message comes up Directory / ...
1
vote
0answers
48 views

How can I copy-paste between emacs and other applications on mac?

All of a sudden, I cannot anymore copy-paste text from Safari to Emacs. I don't think I changed anything relevant to my .emacs recently and I am pretty sure this was possible a few days ago. I am ...
1
vote
1answer
71 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 ...
3
votes
1answer
397 views

Emacs code for resizing frame

I've been writing some fortran code using emacs, and found that I needed emacs to recognise that the code I'm working on is fortran code (if for example your filename doesn't end in .f or .f90) so ...
1
vote
1answer
183 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?
1
vote
2answers
34 views

Emacs separate init file for no-window mode

I have my color theme settings and a function to automatically maximize emacs on startup in my .emacs file, however, using this .emacs file with no window mode -nw results in an error since an X ...
3
votes
3answers
2k views

markdown2pdf latex error

I created a markdown document in emacs. The document is in Ukrainian, so it has some cyrillic letters. I'm trying to convert it to pdf using pandoc mode. But it fails with: markdown2pdf: ! LaTeX ...
1
vote
0answers
370 views

Org-mode - table columns alignment - little tweak

In org-mode when I am using tables I need either to set up somehow or change algorithm of alignment in columns. By default there is text aligned to right with one whitespace character prepended. If ...
0
votes
3answers
2k views

Installing emacs on red hat linux 5

I am very new to Linux , we are trying to install Emacs editor on linux which is Red hat Linux5. We setup VMWare and installed linux on that , i tried google a lot and couldn't find any tutorial on ...
0
votes
0answers
27 views

How to correctly indent multiline ruby method chaining code in emacs?

I wish to have such indentation: some_object.method_1(args) .method_2(args) .method_3(args) While by default ruby-mode will indent the code like: some_object.method_1(args) ...
2
votes
0answers
29 views

Windows 7, repetition of audio tick.wav, like those Unix guys can do, from other application.

At org-pomodoro_resources at master · lolownia_org-pomodoro · GitHub / resources, there is a tick.wav file, to be played repetitively, from Emacs. I have tried start, wmplayer, vlc, play (sox), and ...
0
votes
0answers
33 views

Moving from Zim to Org-Mode?

I would like to move all my file from Zim to Org Mode. I tried exporting as markdown stuff but Zim does not seem to be able to export all my stuff properly. I have a lot of files so I would like an ...
1
vote
3answers
56 views

How to programmatically create a new Emacs frame with a given name?

I need to be able to create frames and to refer to them programmatically. How can one create a new Emacs frame with a given name, so that he can refer to it later on? I know how to create new ...
1
vote
1answer
51 views

Why was iswitchb removed from GNU Emacs 24?

I have used IswitchB for a number of years, but in version 24 of Emacs, it has been removed. My muscle memory is finding the transition to Icomplete or Ido difficult. I know that it's possible, at ...