From 5fb7704c0f844191de7c5e4d03b059525348b5f4 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 13 Apr 2019 19:26:19 -0400 Subject: emacs: move configuration to .emacs.d --- .emacs.d/var/abbrev.el | 12 ++++++++++++ .emacs.d/var/eshell/alias | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .emacs.d/var/abbrev.el create mode 100644 .emacs.d/var/eshell/alias (limited to '.emacs.d/var') diff --git a/.emacs.d/var/abbrev.el b/.emacs.d/var/abbrev.el new file mode 100644 index 0000000..933d5a0 --- /dev/null +++ b/.emacs.d/var/abbrev.el @@ -0,0 +1,12 @@ +;;-*-coding: utf-8;-*- +(define-abbrev-table 'message-mode-abbrev-table + '( + ("linux" "GNU/Linux" nil :count 4) + )) + +(define-abbrev-table 'text-mode-abbrev-table + '( + ("em" "[emacs" nil :count 1) + ("rc" "[rc" nil :count 1) + )) + diff --git a/.emacs.d/var/eshell/alias b/.emacs.d/var/eshell/alias new file mode 100644 index 0000000..e086adf --- /dev/null +++ b/.emacs.d/var/eshell/alias @@ -0,0 +1,17 @@ +alias .. cd .. +alias ... cd ../.. +alias e find-file-other-window $1 +alias ee find-file $1 +alias emacs find-file $1 +alias gd magit-diff-unstaged +alias gds magit-diff-staged +alias git git --no-pager $* +alias l ls -l $* +alias la ls -al $* +alias ll ls -al $* +alias man woman $1 +alias up eshell-up $1 +alias pk eshell-up-peek $1 +alias vi find-file $1 +alias vim find-file $1 +alias m mbsync csclub; mbsync uwaterloo; mbsync amin -- cgit v1.2.3-83-g751a