From ce648429fa8627e8a0d3caf0828df71f6c7a7f50 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Wed, 4 Jun 2025 22:46:24 +0300 Subject: [PATCH] Set a minimal Emacs as the default editor --- .bash_aliases | 1 + .profile | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index 13f325c..f073c7b 100755 --- a/.bash_aliases +++ b/.bash_aliases @@ -1,5 +1,6 @@ #! /usr/bin/bash +alias em="emacs --no-init-file --no-splash --no-window-system" alias ll="exa --binary --long" alias la="ll --all" alias tree="ll --tree" diff --git a/.profile b/.profile index 00fea03..dae4993 100644 --- a/.profile +++ b/.profile @@ -27,6 +27,8 @@ if [ -d "$HOME/.local/bin" ] ; then fi umask 0007 +export EDITOR="/usr/local/bin/emacs --no-init-file --no-splash --no-window-system" +export VISUAL="/usr/local/bin/emacs --no-init-file --no-splash --no-window-system" export GTK_IM_MODULE="fcitx" export QT_IM_MODULE="fcitx" export XMODIFIERS="@im=fcitx"