Most Popular

1500 questions
10
votes
2 answers

Default Magit commit state in Evil

I use evil. Normally, when I commit, I'd like to immediately start typing, but evil starts the buffer in evil-normal-state. I used to set (evil-set-initial-state #'git-commit-mode 'insert) But that no longer works, as Magit uses text-mode for its…
PythonNut
  • 10,243
  • 2
  • 29
  • 75
10
votes
0 answers

Significance arithmetic in calc

I would like to perform significance arithmetic in calc-mode. For example, I want 5000 to have one significant figure, and 5.0e3 to have two significant figures. Calculations should preserve significant figures according to the rules of significance…
Matthew Piziak
  • 5,958
  • 3
  • 29
  • 77
10
votes
2 answers

Tracking down Org LaTeX export errors

How do you track down errors reported during the export process? I am writing an Org document and exporting it to PDF. (I do not know LaTeX). I was getting the following error: org-latex-compile: PDF file ./myfile.pdf wasn't produced: [undefined…
Sue D. Nymme
  • 1,406
  • 12
  • 13
10
votes
1 answer

How to toggle Org-mode source code block ":eval no" status

I often limit or unlimit the evaluation of specific code blocks in org-mode babel using :eval header argument. Here's an example: #+BEGIN_SRC emacs-lisp :results value scalar :eval no (+ 1 1) #+END_SRC #+RESULTS: : 2 I toggle the code blocks…
RUserPassingBy
  • 1,078
  • 7
  • 14
10
votes
1 answer

Can Org Babel conditionally tangle code blocks based on system-type?

Edit: While I'm still learning the ropes of Babel, I've read about the system-type, emacs-version, and window-system variables, which sound like they contain all the information I need to get the behavior I've described here. In fact, I could just…
Dan
  • 243
  • 1
  • 6
10
votes
3 answers

How to prevent Magit from asking where to push a branch?

When calling magit-push-current with P P from the status buffer, Magit 2.1.0 asks me where to push the branch on the first time, when upstream is not set. How can it let automatically generate the name as it used to do before?
z1naOK9nu8iY5A
  • 203
  • 1
  • 5
10
votes
3 answers

How to make a shell command totally silent (preventing it to split window or to open a new frame/window etc)

Is it possible to run a shell command silently (in background)? When I use async-shell-command, emacs split the windows. I would like that an specific shell command to be totally in background (without any visual effect). As an explicit example, I…
Name
  • 7,689
  • 4
  • 38
  • 84
10
votes
2 answers

Technical considerations for package maintainers to not use the Emacs package manager?

I am noticing some notable package maintainers are choosing to not use the Emacs package management system (ESS?) or complaining about its limitations (Helm). Quoting from Helm's README.md: WARNING: Due to a bad concept of package.el which is in…
Amelio Vazquez-Reina
  • 5,157
  • 4
  • 32
  • 47
10
votes
2 answers

org-habit graph on todo list agenda view

I'm using org-habit, and the habit graphs show up nicely on the normal agenda view. However, I'd like to use the todo list with tag filtering, and there the habits look like normal todo items, without the habit graph. How can I make the habit graph…
legoscia
  • 6,012
  • 29
  • 54
10
votes
9 answers

Install Pdf-Tools on Emacs MacOSX

Aim I would like to get PDF Tools installed on my GUI Emacs on MacOSX (version 25.0.50 installed via Homebrew on MacOSX 10.10.2) because the README says it's possible. Setup I installed poppler and exported the PKG_CONFIG_PATH variable to my shell…
m__
  • 923
  • 1
  • 7
  • 12
10
votes
2 answers

How do I run multiple versions of Emacs with the same .emacs.d

I alternatively run 24.5 and 25.0.50. Unfortunately, packages installed and compiled from 25.0.50 don't work with Emacs 24.5 (cl-struct-define is a common culprit). One trivial solution is to not byte-compile anything. That makes things pretty slow,…
Clément
  • 3,924
  • 1
  • 22
  • 37
10
votes
2 answers

disable specific warning in flycheck (specifically "#pragma once in main file")

I'm using flycheck for C++ development, and get the following warning: #pragma once in main file In all headers included in a main file. Searching the webs, I get the impression this has something to do with how gcc and clang (both give the same…
Spacemoose
  • 877
  • 1
  • 7
  • 18
10
votes
3 answers

Org-mode export: indent first line of each paragraph, "literary" style

Is there a switch on org-mode I can use on export to ODT (or other format) to format my source file of This is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a paragraph …
Steven Arntson
  • 1,313
  • 9
  • 27
10
votes
1 answer

Why does the font height change when bold?

It's so annoying... When any text on a line has its face changed so that the text is bold, the height of the line increases by (I assume) a single pixel. It's best shown with an image: Why is this? How do I prevent it? As requested, info on the…
edam
  • 311
  • 1
  • 6
10
votes
1 answer

variable project root folder in .dir-locals.el

I'm using company-mode for completion in C++ code. To tell clang backend of company where the include files for the current project are I have to use the following .dir-locals.el file ((c++-mode (eval setq company-clang-arguments (append …
kain88
  • 825
  • 7
  • 19