X11 emacs is blurry when Wayland scaling is enabled
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"
#########################
+++ /dev/null
-[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;