Heikki
  • Member for 7 years, 3 months
  • Last seen this week
Unable to decrypt .gpg file using emacs but command line gpg works
19 votes

You do not say which OS nor version of emacs you have. I solved yesterday exactly the same problem in OSX and emacs 25.1 using information from this link: http://colinxy.github.io/software-...

View answer
how install emacs 26 (or whatever latest ver) on mac
Accepted answer
17 votes

Have a look at brew emacs recipe options with brew info emacs. It has this option: --devel Install development version 26.0.90 To replace your current emacs, run: brew unlink emacs brew ...

View answer
Require a file in the current directory without setting load-path
Accepted answer
10 votes

Like John Kitchin pointed out, load-file does what you want. For example: (setq my-utils-file "utils.el") (load-file (expand-file-name my-utils-file (file-name-directory (...

View answer
How to get Org-mode live buffer export?
Accepted answer
8 votes

There is no generic way of doing it. However, if HTML preview is good enough for you, there is org-preview-html that updates on save.

View answer
How to update an org parent header's checkboxes count automatically?
Accepted answer
7 votes

Use @wasamasa's solution for adding new headers. There are no default org commands for removing a heading and updating the todo count at the same time. It is possible to update all todo counts in the ...

View answer
Find cause of cpu-usage?
Accepted answer
5 votes

@npostavs' last comment should give you enough hints to solve the problem. The built-in profiler can tell which function is causing the high CPU usage. Here are simple steps to get started: (profiler-...

View answer
Confusion about space and tab characters in Emacs
5 votes

Like most things in emacs, the tabs policy is configurable. It sounds to me that you'd like to follow the most common apporach and use the tab key as an indentation tool and not have tab characters in ...

View answer
Can emacs run inside chrome?
5 votes

Apparently, yes. It was talked about a couple of year ago: http://endlessparentheses.com/emacs-is-available-on-chromebook-and-chrome.html https://www.reddit.com/r/emacs/comments/311kpk/...

View answer
how to set ipython on a virtualenv?
Accepted answer
5 votes

Reading the docstring for the deprecated elpy-use-ipython, it points to https://elpy.readthedocs.io/en/latest/ide.html#interpreter-setup that recommends the following setup for ipython: (setq python-...

View answer
What kind of environment variables does Emacs expect to find in .profile, .bash_profile etc?
Accepted answer
5 votes

This is a feature of the emacs package exec-path-from-shell, https://github.com/purcell/exec-path-from-shell. The message is trying to do you a favour in warning about PATH variable definitions in ...

View answer
Call org-mode code block by name?
4 votes

Are you sure you need new key-bindings? Did you know that you can call code blocks from other code blocks? See https://orgmode.org/manual/Evaluating-Code-Blocks.html You can bind code block by name in ...

View answer
How to update packages installed with use-package
4 votes

There is a highly recommended package called paradox that extends package management commands. Read more from https://github.com/Malabarba/paradox (use-package paradox :init (setq paradox-github-...

View answer
Getting a org link to an mu4e message
Accepted answer
4 votes

The org-mode integration is built-in to mu4e, but it is kept in a separate package that is not enabled by default. You have to run (require 'org-mu4e) After that you can use org-store-link in both ...

View answer
Regex for any file not ends with
4 votes

Elisp regular expressions are hard to read, hard to get right and even harder to maintain. Here are two alternative approaches: foreign-regexp.el -- https://github.com/k-talo/foreign-regexp.el ...

View answer
HTML mode that closes tags
4 votes

Install web-mode, http://web-mode.org/. It is the most complete mode for web pages and does contain what it calls HTML tag auto closing.

View answer
Org Mode Default to Alt-Enter for Bullets
4 votes

The package org-autolist that does this has been available from MELPA for almost two years. See https://github.com/calvinwyoung/org-autolist

View answer
How to list a newly formed emacs minor-mode?
Accepted answer
3 votes

You are right in assuming that the location is wrong. Emacs does not know about your niranjan directory. You assume that ~/.emacs.d/elpa/ is a special location and that emacs automatically knows how ...

View answer
Magit WIP mode: how to suppress prompt about saving ~/.abbrevs?
Accepted answer
3 votes

This is not specific to magit. Rather than tweeking it, you can tell abbrev-mode to be silent: (setq save-abbrevs 'silently) In addition, if you get interruptions to read the abbrev file, you can ...

View answer
Find out duplicate headings
3 votes

This function lists duplicate headings from the current buffer based on string identity. You can extend the storage structure to include more information about the contents of the text and test ...

View answer
Duplicate messages in sent email folder with mu4e
Accepted answer
3 votes

Set the variable mu4e-sent-messages-behavior. It has three possible values and the docstring says: Note, when using GMail/IMAP, you should set this to either trash or delete, since GMail already ...

View answer
What does it mean hlines in org's table?
Accepted answer
3 votes

hline is short for horizontal separator line. Please read the manual: https://orgmode.org/manual/Built_002din-table-editor.html

View answer
How to swap strings in all lines?
3 votes

Regexps are an overkill in this case since emacs has a built-in command transpose-words that is bound to M-t by default. This command, combined with isearch are enough to solve the problem when linked ...

View answer
Time in Org heading is read as timestamp by Org agenda
Accepted answer
3 votes

Best way of finding configurable variables is to look into the source code. In this case, the org-agenda.el file contains this: (defcustom org-agenda-search-headline-for-time t "Non-nil means ...

View answer
Control footnotes placement in org mode
Accepted answer
3 votes

You will need to use the LaTeX-package called endnotes from your org document. Export the following org document to see it in action: #+LATEX_HEADER: \usepackage{endnotes} #+LATEX_HEADER: \...

View answer
Spacemacs orgmode: How to regenerate the `custom-set-variables` values in `.spacemacs` file
3 votes

custom-set-variables is set when you use the Custom interface of Emacs to change its behaviour. It most useful for doing quick changes to variables in packages you are not familiar with. In the long ...

View answer
Does org mode supports "session" header argument for emacs-lisp source block?
Accepted answer
3 votes

The :session argument sets up a language interpreter that is shared among code blocks. If it is not used, a new interpreter is created for each code block and code is not shared. This is equivalent of ...

View answer
Easily changing matching quotes
3 votes

I knew this was going to take some time, but in the end I couldn't resist the temptation to figure out how it's done properly. :) Enjoy! (defun toggle-quotes (uarg) "Toggle single and double ...

View answer
Org-mode paragraph-start not respected
Accepted answer
3 votes

You are trying to use full stops . as bullets. Org mode recognises -, + as unordered list item characters at the beginning of the line. (Try pressing Shift and right arrow with cursor on a list item ...

View answer
Storing previous cursor positions
3 votes

You are describing a use case of bookmarks. For example, have a look at the visual bookmark package at https://github.com/joodland/bm. You get functions to toggle bookmarks at point and move back and ...

View answer
Export org notes to pdf such that it looks nice
Accepted answer
2 votes

Your main problem seems to be that exporting does not honour your line breaks. There are two simple options to get around that. Do global replace linefeed to two linefeeds, \n to \n\n, before ...

View answer