All Questions

Filter by
Sorted by
Tagged with
23 votes
3 answers
5k views

How to display the content of minibuffer in the middle of the emacs frame?

When working on a maximized Emacs frame, having the content of the minibuffer / echo area display at the bottom of the screen can be hard to see, but also causes to lose focus on the text being edited ...
5 votes
1 answer
2k views

Customizing the layout of gdb-many-windows

I really like all of the information that is available to me when I run GUD/GDB with gdb-many-windows, but I would like to be able to move the windows around some. Specifically I would like to use ...
  • 7,883
1 vote
2 answers
2k views

Why does hook to set up C++ mode indentation not work?

This is my code (defun my/set-c-mode () (local-set-key (kbd "C-c C-c") 'compile) (setq compilation-finish-function 'compilation-exit-autoclose-clone) (setq c-default-style "linux") (setq c-indent-...
  • 465
2 votes
1 answer
481 views

Make comint-mode behave more like term-mode

I am constantly getting frustrated with the GDB comint-mode buffer when using GUD. Somehow my cursor always ends up straying from the bottom of the buffer, and then my input is not interpreted how I ...
  • 7,883
14 votes
1 answer
958 views

Make a buffer-local variable become global again

I was experimenting with local variables and set: (defvar-local foo nil "Buffer local foo") I later redesigned my program to use a global variable instead using: (defvar foo nil "Not buffer local ...
2 votes
2 answers
137 views

How to modify bindings to match ECB window numbers?

ECB windows display their number: W-0, W-1, etc. Is there a way to define bindings so that I can get to these windows using bindings such as C-c . w 0, C-c . w 1, rather than using C-c . g d to go ...
7 votes
3 answers
2k views

単 does not show up in Emacs, how to fix?

I'm editing a text file containing Japanese kanji characters. 単 does not show up in Emacs, how to fix? It shows up as some sort of white space. Update: I'm using GNU Emacs 24.3 (9) for Mac. After ...
  • 549
0 votes
1 answer
309 views

emacs24 Mac - Mouse works but keyboard input stays in terminal

When I run emacs24 on my Mac, the keyboard input continues to appear in the terminal instead of in the emacs shell. I just installed emacs on my Mac using Homebrew. eg brew install emacs --cocoa ln -...
  • 13
8 votes
3 answers
2k views

Copy region from emacs without newlines

I would like to be able to easily select a region of text from Emacs and then paste it into another app or browser - with all the extra fill-paragraph newlines removed so that the paragraph display in ...
  • 373
9 votes
4 answers
8k views

How to debug startup problem, if `--debug-init' has no effect

When I launch Emacs24 (in an Ubuntu machine) I get an error message in the init procedure. Warning (initialization): An error occurred while loading `/home/nivaca/.emacs': But when I launch it with ...
  • 1,461
1 vote
1 answer
289 views

Interpret where error is from --debug-init when trying to require go-mode

I'm trying to install go-mode in emacs (http://dominik.honnef.co/posts/2013/03/writing_go_in_emacs/) but am having trouble and I'm not sure if the problem is with my .emacs file or with the go-mode el....
  • 13
5 votes
1 answer
1k views

How can I see total time today on _all projects_ in the modeline?

The variable org-clock-modeline-total gives me several options for what time to show in the modeline, but they limited to time clocked into the current task. I would like to show the total time clock ...
3 votes
3 answers
1k views

Debug why a function is removed from post-command-hook

I am trying to implement the auto-indentation snippet posted by @Malabarba in one of the emacs SE questions. From that post, below is the function that I am trying to add to the post-command-hook: (...
  • 24.5k
17 votes
2 answers
5k views

How can I set different font sizes for buffers and for the mode-line?

I have this line in my init.el file to set the size of the font in all frames: (push '(font . "DejaVu Sans Mono-10") default-frame-alist) It works but i'd like to have a bigger font in all buffers ...
  • 1,723
14 votes
2 answers
4k views

Mark and open multiple files with Helm and Projectile

Helm seem to support marking files in helm-find-files. Is it possible to open the marked files, each one inside of its own buffer from within the find file buffer? Update: I noticed that I was using ...
's user avatar
7 votes
2 answers
835 views

Setting (or *simple* mode) for editing tab-separated columns

I'm looking for either some built-in setting or a simple mode for viewing and editing tab-separated columns (TSV files). All I need is for the TSV text to be displayed in a way that respects the ...
  • 2,951
6 votes
1 answer
1k views

Regexp replacement: difference between \([[:digit:]]+\) and ([[:digit:]]+)

With M-x replace-regexp, I found that both \([[:digit:]]+\) and ([[:digit:]]+) will match (123), and not one without parentheses, But the first will replace 123 and the second (123). I wonder why the ...
  • 4,797
5 votes
1 answer
674 views

What does "less-than" key "greater-than" mean in terms of keybindings?

I'm trying to define a prefix keymap for a minor mode, but I'm getting a result I've not seen yet: `link-grammar-mode' Minor Mode Bindings: key binding --- ------- <C-.>...
  • 11k
2 votes
1 answer
3k views

How do I enable auto-complete globally on my init file?

At some moment in time, auto-complete just stopped working for me. I added this code in my init file: (global-auto-complete-mode t) But I get this error when starting Emacs: Symbol's function ...
40 votes
6 answers
15k views

Problems with keybindings when using terminal

I have the following line in init.el: (global-set-key [(control \;)] 'comment-region) It works very well in GUI window, but if emacs is invoked with the -nw option then C-; doesn't comment region, ...
15 votes
1 answer
688 views

How to use SLIME as a proxy between Common Lisp program and Emacs Lisp?

I'm looking into doing the following: I have a program written in Common Lisp, which I want to be able to communicate with Emacs. The program deals with natural language parsing, so the things I'd ...
  • 11k
7 votes
2 answers
2k views

What are the differences between autopair and smartparens?

Both autopair and smartparens provide functionality for inserting matching pairs of delimiters automatically. How do they differ from each other in practice (if at all)? What are some use cases that ...
  • 14.3k
7 votes
1 answer
2k views

Create table for existing data using org-mode

Is there a way of creating table for existing data using org-mode ? Let's assume I have the following data row1 row2 row3 And now I want to create a table of dimension 1x3 (col*row) on it. The ...
  • 3,403
5 votes
1 answer
205 views

How to make sure currently selected text gets deleted when typing new text?

When editing text, editors' usual behaviour is to replace selected text with the next text. In Emacs, when text is selected and you enter new characters, the new text gets inserted at point, leaving ...
11 votes
3 answers
621 views

Defining the window pointed by "other-window"

In emacs, more often than i like, I end up with 4 windows or more. I'll use that example: +--------|-----------+ | | | | 1 | 2 | | | | +--------+-----...
  • 1,164
14 votes
4 answers
685 views

Differences between setting major mode keys with a hook versus adding them to the mode map

Assume that I have downloaded a major mode called magical-mode, and it has its own magical keymap called magical-mode-map. This mode also provides a hook magical-mode-hook which is run each time ...
  • 7,883
5 votes
4 answers
4k views

What is the right way to install tab bar?

I want to install tab bar to see buffer names at the top and jump between them with Ctrl-Up/Down. Yes, I know that some people doesn't recommend it for emacs, but I don't agree with them - I do like ...
12 votes
3 answers
2k views

Treat symbols as words in prog modes

There are a number of commands in Emacs which apply to "words." Examples include forward-word, kill-word, upcase-word, mark-word, transpose-words, etc. The definition of "word" seems to vary a bit ...
  • 7,883
9 votes
2 answers
3k views

How do I save a cursor position?

How can I save the cursor position for every file I have opened? So, next time I open the file, the cursor will be at the position I last opened it.
  • 6,654
15 votes
3 answers
6k views

Shift+Up isn't recognized by Emacs in a terminal

Very often I use Shift+Up/Down to select a region in Emacs. It works fine in GUI mode, but when emacs is invoked with -nw option I can select lines only with Shift+Down. The Shift+Up doesn't work, I ...
8 votes
2 answers
3k views

How to integrate SLIME with MIT Scheme?

I know basics of Common Lisp. I've learned it using Emacs + SLIME, and I must say that without these two I wouldn't learn too much - using bare REPL is tough job. However, SLIME makes a great job at ...
  • 1,383
22 votes
5 answers
4k views

Getting number of occurrences, during incremental search (C-s / isearch-forward)

Inspired by modern browsers, I'd love to be able to see how many occurrences there are of some string, when I search for it – like the "10 of 37" at the top-right corner of the screenshot below. ...
4 votes
1 answer
190 views

Terminating ibuffer incremental search

When I terminate a Multi I-search, Emacs takes me back to the original buffer rather than the result I'm looking at. I've tried terminating the search with RET, escape, arrow keys, and none of these ...
  • 679
17 votes
1 answer
1k views

How to view and edit large delimiter separated value files?

I have been using csv-mode to modify small to medium sized CSV files, but recently I have been working with large files containing more than 40,812 entries. csv-mode struggles to align and navigate ...
8 votes
2 answers
283 views

Argspec or arity of a bytecode function in Emacs 24

I have code that tests the arity of a function. I use it to determine whether optional arguments added in recent versions of a package are present. It calls subr-arity for built-in functions and ...
9 votes
1 answer
1k views

Simulating mouse operations with keyboard

Is there a way, via some command that can be invoked by the keyboard, of making Emacs think that I clicked at a particular point (so that it does whatever it would have done if I clicked there, e.g. ...
1 vote
2 answers
782 views

Unable to load color "color-235" when using `gruvbox` theme

I have the following line in my .emacs to load the gruvbox theme: (load-theme 'gruvbox t) When opening Emacs, I get the following error Unable to load color "color-235" However, when I call load-...
36 votes
4 answers
6k views

Show unbound keys

I want to define some key bindings for my new found usage of helm, amazing mode btw, and I want to do it without overwriting the usage of other keys. I realize that the number of different key ...
  • 900
8 votes
3 answers
1k views

Writing portable Elisp

Ideally, I would like to be able to store the entire contents of my .emacs.d directory and have it "just work" on any Emacs I load it into, but still take advantage of any features of the specific ...
1 vote
2 answers
472 views

Origin of some modeline indications: Git:master [i,#]

In my mode line, to the left of where it describes the current modes e.g. (Org company), there is text that looks like [#] or sometimes [i,#], where the i and # signs are highlighted. I don't think ...
  • 679
1 vote
1 answer
1k views

Using ELPA in batch mode on Windows fails

I posted this question to help-gnu-emacs, but haven't had a reply there, so perhaps this is a different audience. I have an automated test suite that downloads a few packages from ELPA to simulate a ...
2 votes
2 answers
1k views

Match a string that includes a space in Helm

I find Helm's space separated queries very useful. However, on occasion, particularly while using the @ prefix (searching for match within a buffer in helm-mini) I would like to be able to specify a ...
12 votes
1 answer
2k views

Emacs and OS X Menu Bar

Been looking for a solution to this for a while now. On OS X minors mode fill the menu bar with useless menu items. Here's a screenshot: If you can't tell, Emacs menu items are blocking the rest of ...
4 votes
2 answers
137 views

Trigger a function when a key is held down after X seconds?

I have highlight-symbol enabled with the delay set to 0. It's great, but unfortunately when I navigate by holding down j or k (evil-mode), the feedback is not great. So I was wondering if it's ...
  • 429
5 votes
2 answers
1k views

How to apply overlay or text properties to text matching a regexp?

I want to transform a text file with many lines : | refXXXXX | here useful text, first sentence, last word. | | refYYYYY | First word, second sentence. | into : here useful ...
10 votes
4 answers
397 views

How do I inherit from prog-mode, whilst still supporting older emacsen?

I'm writing a major mode for a programming language, but I want to support older Emacs versions. prog-mode is relatively new. I want to inherit from prog-mode if it's defined, but still do something ...
5 votes
1 answer
148 views

Why does local-key-binding return a 1 for a key with no local binding

When I evaluate (local-key-binding key) for any arbitrary key that does not have a local binding, I expect a return value of nil, but I almost always get a 1. If the key actually does have a local ...
  • 7,883
2 votes
3 answers
258 views

Ubuntu/Debian preempting me and running code before me

I'm on Ubuntu 14.04, with: GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian and have discovered something disturbing/annoying. I have been ...
  • 900
3 votes
1 answer
552 views

How can I connect to a Jabber group chat through a bookmark with jabber.el?

How can I connect to a group chat using a bookmark with jabber.el? I figured out how to look at the bookmarks via M-x jabber-edit-bookmarks, but I can't find any commands to actually use them! (...
11 votes
2 answers
1k views

Is there an Emacs mode convenient for writing poetry?

I've tried simple searches on Google and MELPA with keywords like "emacs poetry mode" or "emacs verse mode" but haven't found anything specifically built for the purpose. The manual walks through ...

15 30 50 per page
1
478 479
480
481 482
486