]> code.delx.au - dotfiles/commitdiff
emacs: use console version
authorJames Bunton <jamesbunton@delx.net.au>
Thu, 13 Aug 2020 13:59:14 +0000 (23:59 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Thu, 13 Aug 2020 13:59:14 +0000 (23:59 +1000)
X11 emacs is blurry when Wayland scaling is enabled

.bashrc
.local/share/applications/emacs.desktop [deleted file]

diff --git a/.bashrc b/.bashrc
index 318ee58c062c5acb63d5be0849f1e620b22de791..2ccae929d0ec187b6f57d0311ad93639bd001771 100644 (file)
--- 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 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'
 else
     export EDITOR='vim'
-    aliasf edit 'vim'
 fi
 fi
+aliasf edit "$EDITOR"
 
 
 #########################
 
 
 #########################
diff --git a/.local/share/applications/emacs.desktop b/.local/share/applications/emacs.desktop
deleted file mode 100644 (file)
index eb26556..0000000
+++ /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;