emacs
emacs
tramp sudo syntax
The syntax is:
C-x C-f /ssh:you@remotehost|sudo:remotehost:/path/to/file RETSo to connect to a remote host centos01.internal.glynn.xyz as the current user, sudo to root and open /etc/nginx:
C-x C-f /ssh:centos01.internal.glynn.xyz|sudo:root@centos01.internal.glynn.xyz:/etc/nginxremove newlines from a region
Select region
shift-option-%
C-q C-j
return
return
Or to put it another way, query replace region, ctrl-q to get extended characters, ctrl-j to put in a newline, replace with nothing, all of them.
named frames
First name the frame:
set-name-frame notesThen select it:
(select-frame-by-name "notes")add cli flags to macos gui Emacs
I sometimes run a GUI only build of Emacs on macOS. That can make it tricky to add cli flags (like debugging a bad init.el). You can add cli args to the gui app like this:
open -a /Applications/Emacs.app -n --args --debug-init