Weekly Tips, Tricks, &c. Thread
reddit / emacs
----------------------------------------------------------------------
AutoModerator · 2022-11-09 08:15
This is a thread for smaller, miscellaneous items that might not
warrant a full post on their own.
[See this search for previous "Weekly Tips, Tricks, &c." Threads.](htt
ps://www.reddit.com/r/emacs/search?q=Weekly+tips&restrict_sr=on&sort=n
ew&t=all)
Don't feel constrained in regards to what you post, just keep your
post vaguely, generally on the topic of emacs.
----------------------------------------------------------------------
vjgoh · 2022-11-10 04:03
Eglot + clangd + company don't insert function arguments for me.
Company used to do this for me when I was using gtags. I've checked my
config options, and I have ALL of the optional server capabilities
turn ON and I've got \`Company Clang Insert Arguments\` set to \`on'.
I'm not sure what else to check. (Emacs 28.0.92 on Windows).
----------------------------------------------------------------------
AblatedSprocket · 2022-11-10 15:18
The other day I discovered [org-krita](https://github.com/lepisma/org-
krita), and brought the code into my config to experiment with, and I
noticed that `(call-process "krita")` worked in my non-daemon Emacs,
but it doesn't work in my daemon, and I'm not exactly sure why. Any
other applications open fine. I'm running Wayland (Sway), and Krita is
the only X11 app, so that might be related. I'm curious to know if
anyone else has seen similar behavior or has any insight into why I
might be seeing this.
----------------------------------------------------------------------
igorepst · 2022-11-10 18:00
The daemon (do you use systemd for this?) may have a different
environment. Try first of all to provide a full path to the executable
----------------------------------------------------------------------
acosmicjoke · 2022-11-10 18:15
I want to create a command that turns on god-mode, then turns it off
automatically after a single command. Any ideas how to approach
implementing this?
I noticed that most of the time I only need god mode for short bursts
of commands, so something like this would save keystrokes.
----------------------------------------------------------------------
dj_goku · 2022-11-10 20:04
I am using an org-mode file to setup my development environment. I
need to copy files from one system to another. The system does have
SSH enabled.
My current solution is to cat the file in one src block and use it and
tangle from another src block.
Is there a better solution thank this? I was thinking of maybe trying
this \[1\].
\[1\] https://stackoverflow.com/questions/48976079/how-to-transfer-
files-with-tramp-using-scp-or-rsync
----------------------------------------------------------------------
halewyn · 2022-11-11 00:01
> I want to create a command that turns on god-mode, then turns it off
automatically after a single command. Any ideas how to approach
implementing this?
God mode has a command just for this purpose: `god-execute-with-
current-keybindings`. Here is the way I set it up in my config:
- Press