wasamasa
  • Member for 7 years, 4 months
  • Last seen this week
Access Table data from from elisp using headline ID
0 votes

It seems you have figured out almost everything. Using :var data=heading and #+name: heading already does the conversion of a table into a list for you and binds it to a variable by that name. Here's ...

View answer
How do I populate tags for C?
2 votes

I'd use etags because it comes with Emacs and is what the default implementation of M-. targets. Given a C project you can use etags *.c *.h to generate the TAGS file in that directory and select it ...

View answer
Multiple files for reading abbreviations?
Accepted answer
1 votes

An abbrev file contains regular Lisp code and is evaluated using load. Therefore all you need to do is to add (load B) (with B being the full path to file B) to your init file wherever appropriate.

View answer
Trying to install scad-mode from package repository
Accepted answer
1 votes

scad-mode is available on MELPA, not MELPA stable. You'll therefore need to set up regular MELPA instead of MELPA stable to install it. You might find this opinion piece about MELPA stable useful: ...

View answer
evil-mode exec register ignores pipe
1 votes

That's one of the many unimplemented Ex features in Evil. There's nothing you're overlooking, except maybe a chance to contribute it.

View answer
How to save vim registers in evil mode for use after restarting emacs
Accepted answer
2 votes

There are several ways of persisting data in Emacs, such as using desktop.el or savehist. If you have enabled savehist-mode in your init file (like by adding (add-hook 'after-init-hook 'savehist-mode))...

View answer
How to disable the / character prefix in Cyrillic input mode?
Accepted answer
2 votes

I assume you mean the cyrillic-translit input method. The supported way is to identify each binding with a slash as prefix by looking at quail/cyrillic.el and unbind it individually: (quail-defrule &...

View answer
How do I change the default indentation of 'if' for Common Lisp and Scheme?
Accepted answer
1 votes

Yes, there is. There are a few customization suggestions for common-lisp-indent-function inside cl-indent.el. The same mechanism is used for scheme-indent-function. Place the following in your init ...

View answer
How can I use more than 9 regex capture groups in Emacs Lisp?
Accepted answer
7 votes

Going by the Emacs source code, it is absolutely possible to use more than 9 regex capture groups: /* Since we have one byte reserved for the register number argument to {start,stop}_memory, the ...

View answer
How to change syntax highlight inside #if 0?
Accepted answer
1 votes

Emacs has a built-in package for ifdefs. To quote from https://www.gnu.org/software/emacs/manual/html_node/emacs/Other-C-Commands.html: ‘M-x hide-ifdef-mode’ Hide-ifdef minor mode hides ...

View answer
string-join list with function as list member
Accepted answer
1 votes

A quoted list doesn't evaluate its args, so it consists of a string, a list containing a symbol and another string. You can selectively evaluate it using backquote and unquote: `("foo" ,(...

View answer
nov-mode returns binary buffer and "File mode specification error: (error Invalid version syntax: ‘’ (must start with a number))"
Accepted answer
2 votes

The reason this happens is because there is Org integration in nov.el that tries to use the recommended APIs and uses the value of org-version to figure that out. Granted, it's more robust to instead ...

View answer
Matching against variable keys in `cl-case`
Accepted answer
2 votes

That behavior is actually described there, albeit in terse form: "Macro: cl-case keyform clause...": cl-case is a macro, macros do not evaluate their arguments. "This macro evaluates ...

View answer
where to find a list of all the builtin functions that have been implemented in C?
Accepted answer
5 votes

You can use mapatoms to iterate over all known symbols and inspect their properties. A built-in function satisfies both symbol-function and the value of that satisfies subrp: (let (subrs) (mapatoms (...

View answer
Racket Mode not working, although all requirements has been provided
Accepted answer
1 votes

There is no racket-mode package in MELPA Stable, so it's not listed in the package list. You'll have to add regular MELPA instead and refresh the package archives.

View answer
Are commands not equivalent to functions in Emacs?
Accepted answer
4 votes

A command is an interactively callable function (or keyboard macro). Therefore not every function is a command, but every command is a function (or keyboard macro). The reason for this difference is ...

View answer
elpy (and evil-mode) do not react on TAB
-1 votes

Evil faithfully emulates Vim, including the part of C-i and C-o being bound in normal state to commands going through the jump list. C-i happens to be equivalent to TAB for reasons (hello terminals), ...

View answer
Prevent screen splitting by julia-repl
Accepted answer
1 votes

I assume you're referring to this piece of code: https://github.com/tpapp/julia-repl/blob/d073acb6339e99edf77833f82277afd9a076f16a/julia-repl.el#L449-L454 It doesn't use display-buffer internally, so ...

View answer
Why Emacs cannot display emojis
Accepted answer
3 votes

This question is based on a false premise: Jet Brains Mono does not contain emoji characters at all. Unless your text editor performs automatic font fallback to fill in missing glyphs not provided by ...

View answer
How to loop over keymaps and assign keys?
Accepted answer
1 votes

In this kind of situation it's useful to use the function equivalent of whatever macro you're wrestling with, evil-define-key*. Note that this evaluates the keymap argument instead of deferring it to ...

View answer
Open current file in Vim
Accepted answer
2 votes

Yes, just adjust the shell command string to actually invoke your terminal emulator. For example with xterm: (defun my/open-current-file-in-vim () (interactive) (async-shell-command (format &...

View answer
pyvenv conditional on hostname
Accepted answer
1 votes

You can figure this one out on your own by using C-x C-e to evaluate the individual forms. For example if you place point after system-name and hit C-x C-e, it will display your hostname (say, "...

View answer
Emacs failing to access HTTPS URL behind a proxy
Accepted answer
2 votes

This is most likely related to the following bug which was fixed in Emacs 26.1: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=11788.

View answer
Error retrieving: https://elpa.gnu.org/packages/archive-contents (error http 400)
1 votes

This is most likely your Emacs not having working TLS support. Make sure your Emacs has been built with GnuTLS support (this should be on by default, check with M-: (string-match-p "GNUTLS" ...

View answer
Apply buffer-local function inside another function in temporary buffer
Accepted answer
1 votes

I'm not sure at what point your text comes in, but since this is org-capture, you can use org-capture-prepare-finalize-hook to do postprocessing like this: (add-hook 'org-capture-prepare-finalize-hook ...

View answer
How to open new window below _all_ other windows?
Accepted answer
6 votes

Yes, it is. (split-window (frame-root-window) (truncate (* (window-total-height (frame-root-window)) 0.75)) 'below) The crucial part is (frame-root-window) which returns a window spanning the whole ...

View answer
Disable Evil-mode's state indication on mode line
Accepted answer
1 votes

Customize evil-mode-line-format to nil for that. Make sure to set it before Evil is enabled, as it only prevents the state indicator from being added to the mode line.

View answer
Create new key binding for command mode in evil mode
Accepted answer
1 votes

The cleanest way is to not reuse Evil-specific commands or keystrokes unless absolutely necessary. Looking at the definition of :w, which happens to be the evil-write command, one can see that it ...

View answer
Symbol’s function definition is void
Accepted answer
6 votes

You define a local variable, then later call a non-existent function with the same name in the if: (if (helm-in-frame-p) Drop the surrounding parentheses and it should work again.

View answer
WoMan italic `\,VARIABLE\/ representation
Accepted answer
3 votes

Congratulations, you've found a bug. \, and \/ are space-adjusting escape sequences for groff this package doesn't handle yet. https://www.gnu.org/software/groff/manual/groff.html#Ligatures-and-...

View answer
1
2 3 4 5
13