Clément
  • Member for 7 years, 2 months
  • Last seen more than a month ago
How can I find the path to an executable with Emacs Lisp?
Accepted answer
20 votes

@Sigma's answer is a good start, but it doesn't filter by executability, nor does it allow for extra suffixes. On windows, for example, running a can invoke a.exe, if that's what's in your path. So ...

View answer
Inline verbatim and code with quotes in Org-mode
13 votes

There's a much simpler option: use inline source blocks: src_python{hello'} This works without problems for characters like quotations marks, and it provides syntax highlighting for inline code. To ...

View answer
magit-stash-create: Cannot save the current index state
6 votes

This could also be due to not having configured git properly: git config --global user.email "you@example.com" git config --global user.name "Your Name"

View answer
How can I prevent large characters from breaking alignment?
Accepted answer
6 votes

A trick that can work is to edit a variable-width font to adjust the bounding boxes of its characters, effectively making it monospace. There are some caveats: The exact width depends on which ...

View answer
loading tramp overrides tramp-remote-path customization back to default value
Accepted answer
5 votes

Short answer: Don't edit custom-set-variables form by hand. Tramp must be loaded for custom-set-variables to work. Either load tramp before custom-set-variables: (require 'tramp) (custom-set-...

View answer
Can I take vector (SVG) screenshots of Emacs?
Accepted answer
4 votes

It's possible in Cairo builds, which are now the default on GNU/Linux! (x-export-frames FRAMES TYPE) Return image data of FRAMES in TYPE format. FRAMES should be nil (the selected frame), a frame, or ...

View answer
How do I measure performance of elisp code?
4 votes

In addition to @Malabarba's answer, note that you can measure the compiled execution time of your code with benchmark-run-compiled. That metric is often much more relevant than the interpreted ...

View answer
How to customize org-latex-export-to-pdf?
3 votes

I take a different approach. I export the Org file without the header (C-c C-e C-b h l, and \input the resulting latex code in my own main.tex. This gives me full flexibility on LaTeX rendering. ...

View answer
How do I escape special characters in Org mode?
3 votes

Using inline code blocks fixes some of these issues; I'm not sure why I didn't come across them before: #+PROPERTY: header-args :exports code Here's a bit of OCaml: src_ocaml{let x' = 1 in x' + x'}. ...

View answer
Specify a fallback font for runic characters in Emacs?
3 votes

You were almost there (note the #x instead of #): (set-fontset-font "fontset-default" '(#x16a0 . #x16ff) "Junicode:Regular")

View answer
How to enable type-check rules with flycheck-tslint
Accepted answer
2 votes

Instead, it complains about not being able to resolve any packages […] and since the path does not match the buffer path all thos results are displayed at the minibuffer instead of actaully ...

View answer
Debug why a function is removed from post-command-hook
2 votes

The usual debug-on-error doesn't work, but you can make it work :) A convenient way to debug these issues was proposed on emacs-devel back in 2010: Run toggle-debug-on-error, then advise your ...

View answer
Is there any why to make FlyCheck learn new html tags?
Accepted answer
2 votes

Flycheck doesn't know anything about HTML tags; instead, the HTML checker that you use does. For HTML, the only checker available out of the box is html-tidy; thus, you should check whether html-tidy ...

View answer
Find IPv6 address of network interface
2 votes

No, this is not possible directly from Elisp at the moment. Please open a bug report, so that this feature can be added (it won't be in time for Emacs 25, but it may make it to the next version). In ...

View answer
Line height with unicode characters
2 votes

This is a bug; it is fixed in trunk. The issue is caused by bad line height information on TeX fonts, which happen to be the ones that Emacs falls back to if it can't find a character. The bug thread ...

View answer
Byte compilation error with use-package
1 votes

Your code is missing a (require 'use-package); without that, Emacs gets confused about use-package and treats it as a function instead of a macro.

View answer
How can I copy syntax highlighted code as RTF or HTML?
1 votes

ESH can do this: Clone the ESH repository, and add (add-to-list 'load-path "/path/to/the/repo") to your .emacs. Use M-x load-library RET esh RET to load ESH Open your code file, run M-x esh-...

View answer
How to customize org-mode indentation?
1 votes

A much simpler solution: in org mode, press M-: and run the following (font-lock-add-keywords nil '(("^[[:space:]*]+" 0 '(face (:family "Ubuntu Mono")) append)) 'append) You may need M-x font-...

View answer
building emacs in a docker container
1 votes

You can disable dumping with env CANNOT_DUMP=yes ./configure. Does this not work on Docker?

View answer
Compose key in Emacs: <Multi_key> is undefined
1 votes

This is a bug. It's fixed in Emacs 24.4. You can update by building it from source; it's pretty straightforward: http://ftpmirror.gnu.org/emacs/emacs-24.4.tar.gz

View answer
Modification of Jim Blandy's `dired-tar` -- Emacs for MS Windows
0 votes

Isn't the new compression support in Emacs 25 a superset of this feature? See http://oremacs.com/2015/10/23/dired-compress/ for details. If not, please clarify which parts of dired-tar do not work on ...

View answer