From: James Bunton Date: Thu, 13 Aug 2020 13:59:14 +0000 (+1000) Subject: emacs: use console version X-Git-Url: https://code.delx.au/dotfiles/commitdiff_plain/99c6bc261a8c3994205cbf0a13919d68e58d31fa emacs: use console version X11 emacs is blurry when Wayland scaling is enabled --- diff --git a/.bashrc b/.bashrc index 318ee58..2ccae92 100644 --- a/.bashrc +++ b/.bashrc @@ -272,16 +272,10 @@ function ssh_unsafe { if emacsclient --version &> /dev/null; then export ALTERNATE_EDITOR='vim' export EDITOR='emacsclient --tty' - - if [[ "$TERM" == screen* ]]; then - aliasf edit 'emacsclient --tty' - else - aliasf edit 'emacsclient --create-frame --no-wait' - fi else export EDITOR='vim' - aliasf edit 'vim' fi +aliasf edit "$EDITOR" ######################### diff --git a/.local/share/applications/emacs.desktop b/.local/share/applications/emacs.desktop deleted file mode 100644 index eb26556..0000000 --- a/.local/share/applications/emacs.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Name=Emacs -GenericName=Text Editor -Comment=Edit text -MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; -Exec=emacsclient --create-frame --no-wait %F -Icon=emacs -Type=Application -Terminal=false -Categories=Development;TextEditor; -StartupWMClass=Emacs -Keywords=Text;Editor;