Browse Source

Configuration changes

* Made emacsclient the default editor with a fallback on vim
* Made emacs follow symlinks to VC controlled files by default
* Configured emacs to copy to/from the X11 clipboard
master
Drew Short 9 years ago
parent
commit
53b213c10a
  1. 6
      home/.emacs.d/init.el
  2. 7
      home/.zshrc

6
home/.emacs.d/init.el

@ -75,6 +75,12 @@
;; Disable emacs help screen ;; Disable emacs help screen
(setq inhibit-splash-screen t) (setq inhibit-splash-screen t)
;; Emable emacs copying from X11
(setq x-select-enable-clipboard t)
;; Always follow symbolic links back to the source file in version control
(setq x-select-enable-clipboard t)
;; Markdown Mode Configuration ;; Markdown Mode Configuration
(autoload 'markdown-mode "markdown-mode" (autoload 'markdown-mode "markdown-mode"
"Major mode for editing Markdown files" t) "Major mode for editing Markdown files" t)

7
home/.zshrc

@ -21,8 +21,8 @@ source $ZSH/oh-my-zsh.sh
# Make sure we're in en_us UTF8 # Make sure we're in en_us UTF8
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
# All Hail VIM
export EDITOR='vim'
# All Hail EMACS
export EDITOR='emacsclient -a vim'
# Make sure ~/bin is on the path # Make sure ~/bin is on the path
export PATH="$HOME/bin:$PATH" export PATH="$HOME/bin:$PATH"
@ -40,7 +40,8 @@ function append_if_exists() {
} }
# Alias to emacsclient # Alias to emacsclient
alias ec="emacsclient"
# fall back on vim if emacs isn't started
alias ec="emacsclient -a vim"
# Don't use the embedded shell time. Use GNU time. # Don't use the embedded shell time. Use GNU time.
alias time="/usr/bin/time" alias time="/usr/bin/time"

Loading…
Cancel
Save