All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
140 views

How to use {est+} field?

~Emacs 2.4.1 under Linux. I would like to use the {est+} feature of column views as documented here. I customized org-columns-default-Format to be like this: (see last field) %50ITEM %TODO %...
0
votes
1answer
73 views

cancel outputing in pdb in emacs

In python-mode, I invoke pdb on a python script by M-x pdb script.py. I then type c to run till a breakpoint, and hit the name of a big list. It keeps on printing the content of the list in the buffer ...
1
vote
2answers
358 views

Hacking a “line-below” version of indent-relative

From indent.el: (defun indent-relative (&optional unindented-ok) "Space out to under next indent point in previous nonblank line. An indent point is a non-whitespace character following ...
9
votes
1answer
670 views

why doesn't emacs support key up/down events

AFAIK emacs does not support keyup/keydown events, only keypressed. An example of a consequence is that when we want to mark a region we have to first set a mark set-mark-command and can then mark the ...
2
votes
2answers
1k views

C++ Incorrect Enum Indentation

It seems like cc-mode indentation is working rather well, however I seem to have run into a minor issue when creating a few enums in C++. Emacs seems to handle almost all kinds of enums rather well ...
2
votes
1answer
218 views

Unicode and `url-unhex-string` and something like \345\205\266\344\273\226

I need to use Emacs built-in url.el url-unhex-string to decode uri (e.g. /%E5%85%B6%E4%BB%96/other) It works, but all non-ascii (I guess it should be Unicode) characters are all converted into ...
1
vote
0answers
98 views

How can I print a full reference using reftex?

I would like to embedd full references of BibTeX entries in selected sections of my org-mode files or at least have the ability to quickly open the full reference in a new buffer. How can I do that? ...
5
votes
1answer
660 views

Run hook on new buffer

I am trying to create something like uniquely, which renames the buffer to the full path within the projectile project. I have the code working, however, I can't seem to figure out how to get it to ...
10
votes
1answer
2k views

Export an org-mode file as a PDF via command line?

What command-line arguments do I use to get Emacs to export an org-mode file to a Beamer PDF? (I want to create a Makefile that produces a PDF when the user runs make.) I tried following this answer ...
0
votes
0answers
147 views

Conventional implementation of display-buffer-above-selected

Despite respectable variety of display-buffer-* functions some of them stand out with lack of flexibility, such as display-buffer-at-bottom or display-buffer-below-selected that exist in absence of ...
4
votes
1answer
2k views

Are there any games to kickstart learning emacs like VIM Adventures?

I am a newbie in emacs and have heard a lot about how powerful emacs is. But the leaning curve seems to be quite steep. If there was a fun way to learn emacs (something like the game VIM adventures) ...
8
votes
2answers
327 views

How can I match “snake_case” automatically when I search for “snake-case” by mistake?

I frequently mistype "_" as "-" when doing a quick isearch-forward. E.g. I'm looking for snake_case and accidentally type C-s snake-case and get no results. Best case I notice quickly enough and don'...
1
vote
1answer
151 views

Sort by artist in EMMS with compilation albums?

I've been using the Emacs Multi-Media System and it works pretty well, but one thing i can't figure out how to do is sort by AlbumArtist. This is important, because i have many compilation albums and ...
8
votes
2answers
926 views

Automatically add recipients' mail address to the BBDB database

I am using BBDB3 with Gnus. I want to make BBDB to update the recipient address in its database for each mail I send (just like Gmail does). Is it possible?
1
vote
0answers
672 views

Cannot load auto-complete library

I have installed auto-complete in the /Users/angeldelcastillo/.emacs.d/auto-complete directory following the instruction on the website, using install.el. The process finishes all right, but when I ...
2
votes
1answer
133 views

set-transient-map oddity for emacs -nw

I have this tester code: (defvar dbg-vec nil) (defun foobar () (interactive) (message "%S" (setq dbg-vec (this-command-keys-vector)))) (set-transient-map '(keymap (left . foobar) ...
0
votes
1answer
307 views

Toggling maximize-window in a buffer running ansi-term

I have been using the following function to maximize and unmaximize a window for two years now. (defun toggle-maximize-buffer () "Toggle maximize buffer" (interactive) (if (= 1 (length (window-...
0
votes
0answers
532 views

Wrong indent in c-mode and c++-mode

In my coding style tabs used to indent and spaces for align. I've configure Emacs for this, but some times emacs places 4 spaces instead of tabulation in some blocks of code. If can be fixed by ...
4
votes
0answers
2k views

Doc-view not working despite gs being in my path

I have trouble getting the doc-view-mode displaying pdfs. Here's the error message generated : No PNG support is available, or some conversion utility for pdf files is missing. From what I've ...
9
votes
1answer
2k views

Colored git output in eshell

I'm using emacs inside a mintty (configured to say it's xterm-256color) terminal on cygwin. list-colors-display works fine. and colors are displayed in dired listings etc. Now I set the color for git ...
2
votes
2answers
278 views

Conditional ensure in use-package

Basically, I want to ensure that the elfeed package is available and load it with use-package, but only on one computer, so I wrote something like this: (unless (string= system-name "here-elfeed-...
0
votes
0answers
121 views

Set javascript mode indents to (1-based) columns 5, 9, 13, 17,

When setting the js-indent-level to 4, my code is aligned in (1-based) columns 4, 8, 12, 16, ... To me this makes perfect sense, but unfortunately I'm sharing code with others whose editors ...
1
vote
1answer
73 views

Using tab causes math in between `\[ \]` to move back two spaces instead of being align

Operating system: Ubuntu 14.04 Emacs version: GNU Emacs 25.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of 2015-03-12 onlcy01-03 AUCTeX version: AUCTeX-version is a variable defined in `tex-site....
7
votes
5answers
2k views

How to paste text that had been copied (alt-w) prior to my latest paste (ctrl-y)?

Once I have selected some text I use Alt-w to copy the region and then use ctrl-y to paste it. Is there a way to paste something I have selected and copied with Alt-w prior to my latest paste?
2
votes
1answer
107 views

Getting Helm to default to the shortest match

Is there any way of getting Helm to default to the shortest match? In many cases the way Helm works at the moment (unless I have some weird configuration) is inferior to vanilla Emacs in many cases. ...
1
vote
1answer
317 views

AucTeX multiple master files in same directory?

I have two master files in the same directory, one "main.tex" for the main document (includes several files through \input) and "test.tex" which I use to compile just a section at a time for testing. ...
3
votes
1answer
73 views

Perform function until it returns user-error

I want to define a function org-move-subtree-top that calls org-move-subtree-up until it returns a user-error (in this case "Cannot move past superior level or buffer limit"). How can I do this in ...
3
votes
1answer
2k views

setting up irony-mode json compilation database

I am struggling with the setup for irony-mode's JSON cdb support. I have this in my initialization: ;;; C++ code completion (eval-after-load 'company '(add-to-list 'company-backends 'company-irony)...
3
votes
2answers
126 views

How to query-replace across all hits in a compilation-mode buffer

How can I run a query-replace on the all the files pointed to by an arbitrary compilation-mode buffer? I think to be usable this would need to be resumable from point in the compilation-mode buffer. ...
4
votes
1answer
640 views

Relative dates in org template

I organize a technical user group and as part of that I use org-mode to schedule the same task tree every month so I remember to do everything for our meetings (food, speakers, projector, etc.) This, ...
1
vote
2answers
947 views

Should I update or install emacs and related packages?

Emacs site says: The current stable release is 24.4 (released October 20, 2014; see also dates of older releases). I have installed it on my Ubuntu 14.04, by downloading the source from the emacs ...
2
votes
1answer
185 views

set-transient-map doesn't behave properly after repetitive call

I wonder what is wrong with the following code? (defvar my-forward-word-map (let ((map (make-sparse-keymap))) (define-key map (kbd "n") 'forward-word) (define-key map (kbd "p") 'my-backward-...
7
votes
1answer
226 views

Access minibuffer history without using arrow keys

Is it possible to scroll the minibuffer history without using arrow keys? My preference would be to not have my fingers leave the home row.
0
votes
1answer
344 views

Construct a list from a variable [duplicate]

'(1 2 3) gives me a list of three elements, but (setq A "apple") '(A) gives me (A). My question is how can I get the list '("apple") by referring variable A?
2
votes
1answer
162 views

coding-system for append-to-file

I am using (setq a-string "\n* Headline \n body") (append-to-file a-string nil "~/tmp.org") to write a string to a org file, since the string contains a *, Emacs ask me to choose which coding ...
8
votes
1answer
581 views

Is there a 'caps-lock-mode' for those of us who've rebound the key?

Rebinding your caps-lock key to control is a popular thing to do (though there are arguments against it, even if a bit pedantic). However, the language I find a lot of my time in uses runs of ...
4
votes
1answer
436 views

org-mode skip to next headline?

How can I skip to next heading in org-mode? Say This is my org-file, pipe indicates the cursor: * Top ** Apple| ** Banana ** Cherry I'd like to run a command and have my cursor now be here: * Top *...
2
votes
2answers
130 views

Switch to next buffer under certain circumstances

I have the following line of code in my .emacs file: (global-set-key (kbd "C-<tab>") 'next-buffer) This key-binding allows me to C-<tab> my way around Emacs. However, because of certain ...
3
votes
1answer
189 views

Moving line with move-text-up doesn't move point

Disclaimer: I'm using Emacs Prelude, but I don't think this is a problem of that specific distribution. Some time ago I discovered that pressing M-S-up or C-S-up with no selection just swaps the line ...
1
vote
2answers
231 views

What's a good workflow for having a few dedicated shell sessions?

At present I use a screen session in the terminal (outside of emacs), with window 0 devoted to running my web server, window 1 to running tests, and window 2 for general hacking. I like this flow and ...
7
votes
1answer
824 views

How to make ordered lists collapsed by default in org mode

Suppose, we have this org file: * Header1 ** Header1-1 ** Header1-2 * Header2 1. Item 1 1. Item 1-1 2. Item 1-2 2. Item 2 When I open it by default it looks like this: * ...
19
votes
2answers
729 views

How to scroll through all available matching interactive (M-x) commands using Helm rather than just my history?

I'm using Helm to perform completions for my interactive commands, but it only lets me cycle through those commands which I have used in the past (i.e. 4 Candidate(s)). I don't want this behavior, ...
4
votes
4answers
196 views

How to reset a counter if `C-g` is pressed

I'm completely new to elisp, and I want a function which cycles through 3 options: Highlight the word. Highlight the sentence. Then highlight the paragraph. What is the proper way to get the ...
5
votes
3answers
421 views

Cycle between windows in all frames

I currently use the following custom command to navigate between windows and frames: (defun nispio/other-window (&optional arg) "With prefix argument, select the next frame. Otherwise, select ...
1
vote
0answers
218 views

How to avoid window scrolling after completion list shows up in company-mode?

When I'm editing a file, if the completion list shows up, the text in the current window will always jump (sometime it will jump a few lines but mostly it will jump to the top of the window), after ...
7
votes
2answers
400 views

How can I find out exactly what my modeline is telling me?

I'd like to know exactly what my modeline is telling me and how it's derived. Right now, if I'm working with a graphical terminal I can hover over each modeline entry in turn, and if I'm lucky, a ...
10
votes
1answer
3k views

How to remap Company's select next and select previous keys?

I don't like the default M-n and M-p keys for company-select-next and company-select-previous so I was wondering if it's possible to remap those to C-n and C-p without affecting the mappings when ...
8
votes
1answer
1k views

How can I add a new colon-command to Evil?

evil-mode introduces vim-style colon commands (such as :wq to save and close). I have a few commands (such as kill-buffer, org-babel-tangle) that I'd like to be able to run through this instead of ...
1
vote
0answers
559 views

unable to post out email from gnus - “make client process failed”

I have a major problem with gnus, running on debian testing in that I am now totally unable to send any email out, and it even survives a reboot! When I try to send an email the following comes up in ...
2
votes
1answer
328 views

How to return to previous point after `org-clock-goto`?

In org-mode, C-c C-x C-j executes org-clock-goto, jumping the cursor to the currently active or most recently used clock. After using this, I almost always want to go back to the point where I was, ...

15 30 50 per page