Stefan
  • Member for 7 years, 3 months
  • Last seen more than a week ago
What packages are available for modal editing?
13 votes

There is god-mode (https://github.com/chrisdone/god-mode), which uses standard Emacs key bindings but removes the need to hold down modifiers. When god-mode is enabled, C-... bindings require no ...

View answer
Define negating pcase patterns
Accepted answer
1 votes

If you want to do it right, then you need to reimplement pcase following the design of Racket's match more closely. I didn't do that, because this generates code which uses local lambda definitions ...

View answer
Is there a way to attach hidden/invisible data to a place in text?
0 votes

I believe you're looking for "overlays": You can use overlays to alter the appearance of a buffer’s text on the screen, for the sake of presentation features. An overlay is an object that ...

View answer
Issue while trying to use chemacs
1 votes

alist-get was added in Emacs-25, so indeed the code of chemacs seems to require a version more recent than Emacs-24.5. You'll likely get better information by asking directly the chemacs maintainers. ...

View answer
unread-command-events and batch mode
1 votes

This is expected behavior, but you can circumvent this problem by let-binding executing-kbd-macro to t, which will convince the minibuffer commands to read from unread-command-events rather than from ...

View answer
How to syntax highlight Python f-strings so {...} uses regular code colors?
Accepted answer
5 votes

FWIW, I just pushed support for "proper" highlighting of f-strings in Emacs's master branch, so it will be available in Emacs-28 when that gets released (and is available in GNU ELPA's ...

View answer
How to protect myself from my own mistakes?
3 votes

You can see what you've done with C-h l (aka M-x view-lossage). As for putting a kind of "safety fence", it should be fairly easy to do, by placing an appropriate function of pre-command-...

View answer
Emacs fails to load org-id at start
0 votes

describe-variable was enhanced a few releases back so as to try and automatically load the corresponding package (after guessing which one it is). But this mechanism has not (yet) been applied to ...

View answer
macos environment variables?
Accepted answer
1 votes

Maybe in your case the best option si to cook up your own solution. E.g. set your machine-specific env-vars in your own invented file, say ~/.mylocal-settings.sh, where you could use a subset of sh ...

View answer
How to configure printing?
Accepted answer
1 votes

lpr-switches is a list of arguments. So think of them as each element of the list being implicitly quoted. E.g.: (setq lpr-switches (append '("-P" "...

View answer
Completion with help
Accepted answer
1 votes

I don't know about "straight-forward", but you can do it as follows: (let* ((comps '(("faz" "Pogo quote part 2") ("foo" "Regular fubar"...

View answer
How to NOT Auto Indent when a specific Character is inputted?
0 votes

electric-indent-mode is enabled by default. You can turn it off via (electric-indent-mode -1) in your ~/.emacs, but if you want to only disable it for a particular char (e.g. () in a particular major ...

View answer
how to move a line from one window to another?
1 votes

As mentioned by @StarBug, one UI problem will be how to specify the "other" buffer/frame. But you could start with something like: (defun my-command (beg end) (interactive (if (use-...

View answer
How to prevent unwanted characters such as`[OB` and `^[OA` and hanging at bottom or top point on scrolling?
Accepted answer
1 votes

Contrary to @db48x, I don't think it's due to Emacs sending wrong sequences to your terminal, but rather the other way around: those ^[OB thingies look very much like the byte-sequence normally sent ...

View answer
How to automatically remove a hook provided by a minor mode after disabling that mode?
Accepted answer
9 votes

The minor mode's hook is called both when activating and deactivating the minor mode, so how 'bout (add-hook 'my-minor-mode-name-hook (lambda () (if my-minor-mode-name ...

View answer
Move point inside of image overlay
Accepted answer
3 votes

I believe you are looking for the variable disable-point-adjustment. You will want to read its docstring to better understand how you want to use it (i.e. you'll have to reset it every time point &...

View answer
How to overwrite by pasting a string without selecting a region?
1 votes

You can write (defun overwriting-yank () "Like `yank` but overwrites the corresponding text." (interactive) (let ((txt (current-kill 0))) (insert-for-yank txt) (delete-char (...

View answer
Why do setq and set quote act differently on let-bound variables with lexical scope?
5 votes

BTW, one way to think about why it can't work is to remember that lexical scoping enjoys the so-called "α-renaming" property: variable names do not matter, and you (or the compiler) can ...

View answer
Derived major mode: new keyword fontification not playing nice with parent mode's
Accepted answer
2 votes

For issue #1, setting { and } to word syntax is wrong. You can give them "symbol constituent" syntax, but not "word" (otherwise you break the expected behavior of M-f and friends)....

View answer
How to customize font-lock-syntactic-face-function?
Accepted answer
1 votes

Some of the details of what is "this" is missing, as is the explanation of what you find clunky, but I'd recommend you use add-function and remove-function instead of setq: (defun mycustom-...

View answer
Set tabs instead of spaces when programming
0 votes

The usual warnings apply, of course: your nice 4-wide TABs indentation may look like crap in someone else's editor unless they also happen to have theirs set to 4-wide TABs (the historical standard, ...

View answer
reverse buffer order
1 votes

They're "visited" in the order given, and the buffer list you see sorts them (by default) by order of "recency". But you can sort them some other way, such as alphabetically: move the cursor into the ...

View answer
Problem with Flycheck and Python
Accepted answer
0 votes

Your warning messages (notice that they say "warning" rather than "error") come from flymake which is a package similar to flycheck except it comes bundled with Emacs. So those messages are not ...

View answer
How to make emacs recognize a bash script that ends in .sh?
Accepted answer
2 votes

C-h m should tell you: [...] shell-specific features. Shell script files can use the `sh-shell' local variable to indicate the shell variant to be used for the file. [...] so adding -*- sh-shell: ...

View answer
How to set name of an Emacs frame?
Accepted answer
3 votes

The parameter name needs to be a symbol rather than a string, i.e. (make-frame '((name . "parsing"))) rather than (make-frame '(("name" . "parsing")))

View answer
Idiomatic conversion of non-nil to explicit t
Accepted answer
1 votes

The better option is: (not (not X)) Some of the advantages are in the ability of the byte-compiler to optimize it away. Also for me it's easy to visually see that it's a "virtual no-op" yet at the ...

View answer
How to install package without install dependencies through "package"?
1 votes

I think the cleanest solution is to tell package.el that you have already lsp-mode mode. You can do it in two different ways: If you have installed lsp-mode in a format/layout that package.el can ...

View answer
Initialization warning after installing doom-modeline
Accepted answer
0 votes

You don't need to (require 'package) and you shouldn't need to (require 'doom-modeline) either. But, depending on your version of Emacs, you need to initialize the package library with (package-...

View answer
Run Emacs in GUI mode without X over SSH
Accepted answer
1 votes

Emacs will start "in GUI mode" automatically when possible. There are basically 2 conditions that need to be satisfied: You must use an Emacs built with GUI support. There must be an Xserver it can ...

View answer
Is there a standard mode for .ini files?
8 votes

conf-mode.el says: This mode is designed to edit many similar varieties of Conf/Ini files and Java properties. It started out from Aurélien Tisné's ini-mode. conf-space-keywords were inspired ...

View answer
1
2 3 4 5
22