Heikki
  • Member for 7 years, 2 months
  • Last seen this week
1 answers
14 votes
6k views
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
6 answers
21 votes
26k views
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
1 answers
6 votes
1k views
Require a file in the current directory without setting load-path
Accepted answer
9 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
1 answers
6 votes
1k views
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
2 answers
5 votes
2k views
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
1 answers
5 votes
1k views
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
2 answers
1 votes
3k views
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
2 answers
4 votes
970 views
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
2 answers
3 votes
2k views
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
2 answers
5 votes
791 views
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
2 answers
1 votes
529 views
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
6 answers
35 votes
19k views
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
2 answers
4 votes
527 views
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
3 answers
3 votes
4k views
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
2 answers
7 votes
4k views
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
3 answers
11 votes
2k views
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
1 answers
3 votes
46 views
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
1 answers
1 votes
80 views
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
2 answers
3 votes
276 views
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
1 answers
0 votes
333 views
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
5 answers
4 votes
973 views
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
1 answers
2 votes
364 views
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
1 answers
3 votes
994 views
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
1 answers
3 votes
2k views
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
1 answers
1 votes
144 views
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
1 answers
2 votes
73 views
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
2 answers
1 votes
84 views
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
3 answers
1 votes
82 views
How to display list of previous copies/kills (`M-w` or `C-w`)?
2 votes

The command counsel-yank-pop which is part of the swiper package, gives you an interactive way to browse and insert elements from you kill ring.

View answer
1 answers
1 votes
186 views
use-package and dependencies
Accepted answer
2 votes

use-package is a macro around require. Macros are expanded before code execution. The purpose of a macro is to create syntactic sugar to make code easier to read, understand, and maintain. Your ...

View answer
2 answers
4 votes
329 views
Org-mode: how to collapse or merge contiguous clock time intervals
2 votes

This function works if the two timestamps are the same and lets the user override a timestamp difference with a universal argument: (defun org-clock-merge (arg) "Merge the org CLOCK line with the ...

View answer