All Questions

Filter by
Sorted by
Tagged with
3
votes
3answers
696 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: (...
15
votes
2answers
4k 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 ...
13
votes
2answers
3k 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 ...
7
votes
1answer
651 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 ...
6
votes
1answer
795 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 ...
5
votes
1answer
542 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-.>...
2
votes
1answer
2k 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 ...
32
votes
5answers
10k 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, ...
14
votes
1answer
583 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 ...
7
votes
2answers
1k 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 ...
6
votes
1answer
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 ...
5
votes
1answer
197 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
3answers
505 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 | | | | +--------+-----...
13
votes
4answers
483 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 ...
5
votes
4answers
3k 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
3answers
1k 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 ...
8
votes
2answers
2k 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.
15
votes
2answers
5k 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 ...
7
votes
2answers
2k 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 ...
19
votes
4answers
3k 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
1answer
168 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 ...
14
votes
1answer
935 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
2answers
261 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 ...
8
votes
1answer
892 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
2answers
597 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-...
32
votes
4answers
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 ...
8
votes
3answers
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
2answers
429 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 ...
1
vote
1answer
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
2answers
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 ...
11
votes
1answer
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
2answers
127 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 ...
5
votes
2answers
914 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
4answers
382 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
1answer
139 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 ...
2
votes
3answers
230 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 ...
3
votes
1answer
516 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! (...
10
votes
2answers
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 ...
7
votes
2answers
3k views

How can I have an agenda timeline view of multiple files?

I'm using org-mode as a knowledge base, where each file is for a specific project that I'm working on. Each file has its own journal and I would love to see an aggregated journal of all the things I'...
5
votes
2answers
283 views

Detect when a key is rebound to another command

First, some context: I am in the process of debugging a strange interaction between smartparens and Org Speed Keys: After editing an .org file for a while, specific speed keys for navigating the ...
2
votes
3answers
1k views

install multiple packages from my .emacs file [duplicate]

I share my .emacs file between machines, which works great but I use a lot of packages and when emacs starts on a new machine with the .emacs it complains about the missing package. I can ignore it ...
5
votes
2answers
494 views

How can I convert hexidecimal values to base 10 in hexl-mode?

A nice feature of viewing binary files with hexl-mode is it displays the equivalent ASCII values to the right of your hexidecimal lines. Is there a way to make hexl-mode treat hex values as floats, ...
4
votes
3answers
773 views

find-grep-dired equivalents for ack and ag

Is there an equivalent find-grep-dired using ack or ag? With the ability to specify the directory where the search starts? The Dired output itself is not so important (in fact I prefer the ack-mode ...
6
votes
2answers
890 views

How to save multiple buffers

After modifying multiple files, how can I save all their buffers?
5
votes
2answers
459 views

Using evil-mode with a function that does not work well with evil-mode

The great org-mode has a fast way to jump between headings in an org file; M-x org-goto or C-c C-j. This doesn't work with evil mode that well. If I am on evil normal mode in an org file, C-c C-j ...
12
votes
1answer
3k views

improve doc-view display quality

The fonts in my pdf's as displayed in doc-view aren't particularly readable. Is there a setting I can change to improve the image quality? I tried changing doc-view-resolution from 100 to 300, but ...
12
votes
7answers
1k views

How can I practice searching and replacing with regular expressions interactively in Emacs?

Searching and replacing using regular expressions is clearly a powerful tool to the Emacs user who can routinely perform these actions. However, as an Emacs (and/or programming) beginner, regular ...
6
votes
2answers
101 views

How to tell eshell to use the os-specific tools if available

I understand why eshell provides elisp interpretations of the kill and rm commands, however, I would like Emacs to use the operating-specific implementations if they are available in the $PATH (...
6
votes
3answers
717 views

flycheck/bash - i'd like to declare that the next line was intentional

When using the shellcheck checker, Flycheck will warn me that the "$@" in the following will be expanded on the client rather than the ssh server. Which is a helpful warning, but yeah I know and I'm ...
16
votes
2answers
2k views

How to bind a key to a specific agenda command/list in org mode

I've added a custom key for the org agenda to show all unscheduled TODO items following Sacha Chua: (defun sacha/org-agenda-skip-scheduled () (org-agenda-skip-entry-if 'scheduled 'deadline 'regexp "...

15 30 50 per page
1
401 402
403
404 405
409