Tony Wolski

Emacs

2021-12-16

I think I just switched to Emacs by default. I wrote this post in Org Mode. I made the below commit using Magit. Day by day I'm doing more and more in Emacs.

2 files changed, 4 insertions(+), 4 deletions(-)
.bashrc        | 2 --
.files/exports | 6 ++++--

modified   .bashrc
@@ -5,9 +5,7 @@
 # If not running interactively, don't do anything
 [[ $- != *i* ]] && return
 
-alias ls='ls --color=auto'
 PS1='[\u@\h \W]\$ '
-export EDITOR=nvim
 
 # Set SSH_AUTH_SOCK so that SSH will use gpg-agent instead of ssh-agent
 unset SSH_AGENT_PID
modified   .files/exports
@@ -1,2 +1,4 @@
-# Make vim the default editor.
-export EDITOR='nvim';
+# Make Emacs the default editor.
+export ALTERNATE_EDITOR=""
+export EDITOR="emacsclient -t"                  # $EDITOR opens in terminal
+export VISUAL="emacsclient -c -a emacs"         # $VISUAL opens in GUI mode