How to pass current-prefix-arg to this-command

I want to reuse current-prefix-arg when calling this-command. I can imagine ways of capturing its value and passing it to modified functions. But, this doesn't seem like a great solution. How can I reuse it (eg. push it back onto a sort of call stack...
more »

2017-10-01 13:10 (2) Answers

Postgres documentation in GNU Info format

Postgres is an open-source project and it has DocBook as default format for its documentation. At a first glance it looks like a tree of *.sgml files in the doc directory inside a repository. There are several pre-defined convertion output formats, ...
more »

2017-08-29 10:08 (1) Answers

In Emacs, how to search in the whole file?

Consider the following text file: foo bar yoo ploo Imagine that I want to search the word foo and that my cursor in in the third line. I use C-s which calls isearch-forward, then input foo and press Enter: the issue is that by default, my cursor s...
more »

2017-07-20 09:07 (1) Answers

Use Emacs registers in Isearch search string

I'm trying to use register values within an Isearch: C-s C-x r i C-x r i a would normally insert the value of register a into the buffer. However this does not work during Isearch. C-x exits Isearch and the register value is inserted into the curr...
more »

2017-06-30 09:06 (2) Answers

Save an isearch with complex terms

I have a log file which I fill with things going on in my life and later want to search. I would like to be able to search it interactively using terms that I save in some respect so I don't have to keep typing them in. For instance with regexp-isear...
more »

2017-06-14 16:06 (2) Answers

Pseudo-WYSIWYG Emacs

With just the few lines in a file file.adoc //// -*-iimage-mode-*- //// .A PNG smiley image::smiley.png[] I can generate HTML using asciidoctor and MS-word .doc using pandoc. This toolchain doesn't handle SVG, and so it's not perfect, but it work...
more »

2017-03-28 20:03 (2) Answers

Conditional Gitignore

I have a git repo in which I store my personal documents. Some of these documents are LaTeX files and some even are PDFs. I of course want them to be in my documents repo. But when I create an org-mode document (*.org), I often build it, resulting i...
more »

2016-12-13 21:12 (1) Answers

Where is locate-dominating-file documented?

I was looking for a way to set the default compile directory in emacs and found a great answer here However I would like to know how I would ever know about this function without google. Below are the current official sources that I know about that...
more »

2016-11-15 20:11 (2) Answers

Emacs shell: save commit message

I've started using emacs a few days ago, and I'm facing a problem when using git in the emacs shell (M-x shell). When I 'git commit' or 'git commit --amend', it opens vim to edit and save the commit message. I'm ok with that, but I can't find a way t...
more »

2016-09-16 11:09 (2) Answers