From d7dee82420a04e5c92e5b5ad316e14a49bd4d689 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 5 Oct 2020 23:38:06 -0400 Subject: Move GNU Emacs configs from ./ into .emacs.d/ I will be using the repository to store my configurations for other non-Emacs pieces of software. The repository itself will be located at ~/ rather than ~/.emacs.d/. --- etc/.dir-locals.el | 4 - etc/abbrev.el | 5 -- etc/custom.el | 124 -------------------------- etc/eshell/aliases | 20 ----- etc/secrets.el | 5 -- etc/yasnippet/snippets/java-mode/format | 5 -- etc/yasnippet/snippets/java-mode/new | 5 -- etc/yasnippet/snippets/java-mode/printf | 5 -- etc/yasnippet/snippets/java-mode/println | 5 -- etc/yasnippet/snippets/java-mode/return | 5 -- etc/yasnippet/snippets/latex-mode/cite | 5 -- etc/yasnippet/snippets/latex-mode/eg | 5 -- etc/yasnippet/snippets/latex-mode/emph | 5 -- etc/yasnippet/snippets/latex-mode/enumerate | 7 -- etc/yasnippet/snippets/latex-mode/etal | 5 -- etc/yasnippet/snippets/latex-mode/etc | 5 -- etc/yasnippet/snippets/latex-mode/ie | 5 -- etc/yasnippet/snippets/latex-mode/itemize | 7 -- etc/yasnippet/snippets/latex-mode/label | 5 -- etc/yasnippet/snippets/latex-mode/newcommand | 5 -- etc/yasnippet/snippets/latex-mode/ref | 5 -- etc/yasnippet/snippets/latex-mode/section | 8 -- etc/yasnippet/snippets/latex-mode/subsection | 8 -- etc/yasnippet/snippets/latex-mode/textbf | 5 -- etc/yasnippet/snippets/latex-mode/texttt | 5 -- etc/yasnippet/snippets/latex-mode/usepackage | 5 -- etc/yasnippet/snippets/log-edit-mode/thankgnu | 5 -- etc/yasnippet/snippets/message-mode/thankgnu | 7 -- 28 files changed, 285 deletions(-) delete mode 100644 etc/.dir-locals.el delete mode 100644 etc/abbrev.el delete mode 100644 etc/custom.el delete mode 100644 etc/eshell/aliases delete mode 100644 etc/secrets.el delete mode 100644 etc/yasnippet/snippets/java-mode/format delete mode 100644 etc/yasnippet/snippets/java-mode/new delete mode 100644 etc/yasnippet/snippets/java-mode/printf delete mode 100644 etc/yasnippet/snippets/java-mode/println delete mode 100644 etc/yasnippet/snippets/java-mode/return delete mode 100644 etc/yasnippet/snippets/latex-mode/cite delete mode 100644 etc/yasnippet/snippets/latex-mode/eg delete mode 100644 etc/yasnippet/snippets/latex-mode/emph delete mode 100644 etc/yasnippet/snippets/latex-mode/enumerate delete mode 100644 etc/yasnippet/snippets/latex-mode/etal delete mode 100644 etc/yasnippet/snippets/latex-mode/etc delete mode 100644 etc/yasnippet/snippets/latex-mode/ie delete mode 100644 etc/yasnippet/snippets/latex-mode/itemize delete mode 100644 etc/yasnippet/snippets/latex-mode/label delete mode 100644 etc/yasnippet/snippets/latex-mode/newcommand delete mode 100644 etc/yasnippet/snippets/latex-mode/ref delete mode 100644 etc/yasnippet/snippets/latex-mode/section delete mode 100644 etc/yasnippet/snippets/latex-mode/subsection delete mode 100644 etc/yasnippet/snippets/latex-mode/textbf delete mode 100644 etc/yasnippet/snippets/latex-mode/texttt delete mode 100644 etc/yasnippet/snippets/latex-mode/usepackage delete mode 100644 etc/yasnippet/snippets/log-edit-mode/thankgnu delete mode 100644 etc/yasnippet/snippets/message-mode/thankgnu (limited to 'etc') diff --git a/etc/.dir-locals.el b/etc/.dir-locals.el deleted file mode 100644 index e007adb..0000000 --- a/etc/.dir-locals.el +++ /dev/null @@ -1,4 +0,0 @@ -;;; Directory Local Variables -;;; For more information see (info "(emacs) Directory Variables") - -((emacs-lisp-mode . ((flycheck-disabled-checkers . (emacs-lisp-checkdoc))))) diff --git a/etc/abbrev.el b/etc/abbrev.el deleted file mode 100644 index 76f19d8..0000000 --- a/etc/abbrev.el +++ /dev/null @@ -1,5 +0,0 @@ -;;-*-coding: utf-8;-*- -(define-abbrev-table 'message-mode-abbrev-table - '( - ("linux" "GNU/Linux" nil :count 4) - )) diff --git a/etc/custom.el b/etc/custom.el deleted file mode 100644 index ebb093b..0000000 --- a/etc/custom.el +++ /dev/null @@ -1,124 +0,0 @@ -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(fci-rule-color "#5B6268") - '(inhibit-startup-buffer-menu t) - '(inhibit-startup-echo-area-message "bandali") - '(inhibit-startup-screen t) - '(initial-buffer-choice t) - '(initial-scratch-message nil) - '(isearch-allow-scroll t) - '(jdee-db-active-breakpoint-face-colors (cons "#1B2229" "#51afef")) - '(jdee-db-requested-breakpoint-face-colors (cons "#1B2229" "#98be65")) - '(jdee-db-spec-breakpoint-face-colors (cons "#1B2229" "#3f444a")) - '(ls-lisp-dirs-first t) - '(magit-diff-refine-hunk t) - '(magit-display-buffer-function 'magit-display-buffer-fullframe-status-v1) - '(message-elide-ellipsis "[...] -") - '(minions-mode t) - '(mm-uu-diff-groups-regexp - "\\(gmane\\|gnu\\|l\\)\\..*\\(diff\\|commit\\|cvs\\|bug\\|dev\\)") - '(mml-secure-key-preferences - '((OpenPGP - (sign) - (encrypt - ("ineiev@gnu.org" "BD9D4DEE7B2FF1CBEF2EE0C4E0ACD3E0CBE7874A"))) - (CMS - (sign) - (encrypt)))) - '(mml-secure-openpgp-encrypt-to-self t) - '(mml-secure-openpgp-sign-with-sender t) - '(objed-cursor-color "#ff6c6b") - '(oddmuse-username "bandali" t) - '(org-agenda-files - '("~/usr/org/todos/personal.org" "~/usr/org/todos/habits.org" "~/src/git/masters-thesis/todo.org")) - '(org-agenda-start-on-weekday 0 t) - '(org-agenda-time-leading-zero t t) - '(org-habit-graph-column 44 t) - '(org-latex-packages-alist '(("" "listings") ("" "color"))) - '(org-pretty-entities t) - '(package-selected-packages - '(delight yasnippet ebdb rt-liberation refinery-theme counsel ivy org-plus-contrib orgalist debbugs)) - '(page-break-lines-max-width 70) - '(pdf-view-midnight-colors (cons "#bbc2cf" "#282c34")) - '(pdf-view-resize-factor 1.05) - '(projectile-completion-system 'ivy) - '(projectile-mode-line-prefix " proj") - '(recentf-max-saved-items 2000) - '(recentf-save-file "/home/bandali/.emacs.d/var/recentf-save.el") - '(require-final-newline t) - '(safe-local-variable-values - '((tex-main-file . "./bandali-mmath-thesis.tex") - (tex-main-file . "../bandali-mmath-thesis.tex") - (flycheck-disabled-checkers emacs-lisp-checkdoc) - (tex-main-file . "./thesis.tex") - (tex-main-file . "../thesis.tex") - (org-export-allow-bind-keywords . t) - (eval load-file "thesis.el") - (eval modify-syntax-entry 43 "'") - (eval modify-syntax-entry 36 "'") - (eval modify-syntax-entry 126 "'") - (eval require 'org-ref) - (eval when - (featurep 'typo - (typo-mode -1))) - (eval add-hook 'after-save-hook #'a/async-babel-tangle 'append 'local) - (eval add-hook 'after-save-hook 'org-beamer-export-to-latex t t) - (eval setq org-latex-prefer-user-labels t) - (eval add-hook 'after-save-hook 'org-latex-export-to-latex t t))) - '(save-interprogram-paste-before-kill t) - '(save-place-file "/home/bandali/.emacs.d/var/save-place.el") - '(savehist-file "/home/bandali/.emacs.d/var/savehist.el") - '(search-default-mode 'char-fold-to-regexp) - '(split-width-threshold 150) - '(text-scale-mode-step 1.05 t) - '(unkillable-buffers '("^\\*scratch\\*$" "^\\*Messages\\*$")) - '(vc-annotate-background "#282c34") - '(vc-annotate-color-map - (list - (cons 20 "#98be65") - (cons 40 "#b4be6c") - (cons 60 "#d0be73") - (cons 80 "#ECBE7B") - (cons 100 "#e6ab6a") - (cons 120 "#e09859") - (cons 140 "#da8548") - (cons 160 "#d38079") - (cons 180 "#cc7cab") - (cons 200 "#c678dd") - (cons 220 "#d974b7") - (cons 240 "#ec7091") - (cons 260 "#ff6c6b") - (cons 280 "#cf6162") - (cons 300 "#9f585a") - (cons 320 "#6f4e52") - (cons 340 "#5B6268") - (cons 360 "#5B6268"))) - '(vc-annotate-very-old-color nil) - '(vc-git-print-log-follow t) - '(version-control t) - '(view-read-only t) - '(web-mode-enable-auto-indentation nil t) - '(which-key-add-column-padding 5) - '(which-key-max-description-length 32)) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(dired-directory ((t (:weight semi-bold)))) - '(ivy-current-match ((((class color) (background light)) :background "#d7d7d7" :foreground "black") (((class color) (background dark)) :background "#65a7e2" :foreground "black"))) - '(ivy-minibuffer-match-face-1 ((t (:background "#eeeeee")))) - '(ivy-minibuffer-match-face-2 ((t (:background "#e7e7e7" :weight bold)))) - '(ivy-minibuffer-match-face-3 ((t (:background "light goldenrod" :weight semi-bold)))) - '(ivy-minibuffer-match-face-4 ((t (:background "misty rose" :weight semi-bold)))) - '(ivy-virtual ((t (:inherit font-lock-builtin-face :foreground "dim gray")))) - '(magit-diff-file-heading ((t (:weight normal)))) - '(org-block ((t (:background "#1d1f21")))) - '(org-block-begin-line ((t (:foreground "#5a5b5a" :background "#1d1f21")))) - '(org-latex-and-related ((t (:foreground "#b294bb")))) - '(quote (org-block-begin-line ((t (:foreground "#5a5b5a" :background "#1d1f21"))))) - '(widget-button ((t (:weight semi-bold))))) diff --git a/etc/eshell/aliases b/etc/eshell/aliases deleted file mode 100644 index 203b616..0000000 --- a/etc/eshell/aliases +++ /dev/null @@ -1,20 +0,0 @@ -alias .. cd .. -alias ... cd ../.. -alias d dired $* -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 mbsync mbsync -c $XDG_CONFIG_HOME/isync/mbsyncrc $* -alias getmail getmail --getmaildir $XDG_CONFIG_HOME/getmail --rcfile getmailrc $* -alias m mbsync csclub; mbsync uwaterloo; mbsync shemshak; mbsync gnub; getmail diff --git a/etc/secrets.el b/etc/secrets.el deleted file mode 100644 index edfa1a6..0000000 --- a/etc/secrets.el +++ /dev/null @@ -1,5 +0,0 @@ -(eval-when-compile (require 'auth-source)) -(defvar nday-students-token (eval-when-compile (plist-get (car (auth-source-search :host "nday-students.slack.com" :max 1)) :token))) - -(defvar canlock-password (eval-when-compile (funcall (plist-get (car (auth-source-search :host "gnus-canlock-password" :max 1)) :secret)))) - diff --git a/etc/yasnippet/snippets/java-mode/format b/etc/yasnippet/snippets/java-mode/format deleted file mode 100644 index 7620366..0000000 --- a/etc/yasnippet/snippets/java-mode/format +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: String.format -# key: f -# -- -String.format("$1${2:%n}");$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/java-mode/new b/etc/yasnippet/snippets/java-mode/new deleted file mode 100644 index 1ffd2e5..0000000 --- a/etc/yasnippet/snippets/java-mode/new +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: new -# key: new -# -- -${1:Type} ${2:obj} = new ${3:Constr}(${4:args});$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/java-mode/printf b/etc/yasnippet/snippets/java-mode/printf deleted file mode 100644 index 1b8c277..0000000 --- a/etc/yasnippet/snippets/java-mode/printf +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: printf -# key: pf -# -- -System.out.printf("$1${2:%n}"$3);$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/java-mode/println b/etc/yasnippet/snippets/java-mode/println deleted file mode 100644 index 7bb944c..0000000 --- a/etc/yasnippet/snippets/java-mode/println +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: println -# key: p -# -- -System.out.println($1);$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/java-mode/return b/etc/yasnippet/snippets/java-mode/return deleted file mode 100644 index 977859e..0000000 --- a/etc/yasnippet/snippets/java-mode/return +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: return -# key: r -# -- -return $1;$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/cite b/etc/yasnippet/snippets/latex-mode/cite deleted file mode 100644 index 3b4d161..0000000 --- a/etc/yasnippet/snippets/latex-mode/cite +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: cite -# key: c -# -- -$1${2:~}\cite{${3:$$(unless yas-modified-p (mapconcat 'identity (reftex-citation 'dont-insert) ","))}}$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/eg b/etc/yasnippet/snippets/latex-mode/eg deleted file mode 100644 index 7c025e3..0000000 --- a/etc/yasnippet/snippets/latex-mode/eg +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: eg -# key: eg -# -- -\emph{e.g.}$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/emph b/etc/yasnippet/snippets/latex-mode/emph deleted file mode 100644 index 36b19d7..0000000 --- a/etc/yasnippet/snippets/latex-mode/emph +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: emph -# key: e -# -- -\emph{$1}$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/enumerate b/etc/yasnippet/snippets/latex-mode/enumerate deleted file mode 100644 index bcb1df1..0000000 --- a/etc/yasnippet/snippets/latex-mode/enumerate +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: enumerate -# key: o -# -- -\begin{enumerate} -\item $0 -\end{enumerate} \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/etal b/etc/yasnippet/snippets/latex-mode/etal deleted file mode 100644 index 96e1fb0..0000000 --- a/etc/yasnippet/snippets/latex-mode/etal +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: etal -# key: etal -# -- -\emph{et~al.}$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/etc b/etc/yasnippet/snippets/latex-mode/etc deleted file mode 100644 index 86b698e..0000000 --- a/etc/yasnippet/snippets/latex-mode/etc +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: etc -# key: etc -# -- -\emph{etc.}$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/ie b/etc/yasnippet/snippets/latex-mode/ie deleted file mode 100644 index cb91c2a..0000000 --- a/etc/yasnippet/snippets/latex-mode/ie +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: ie -# key: ie -# -- -\emph{i.e.}$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/itemize b/etc/yasnippet/snippets/latex-mode/itemize deleted file mode 100644 index b7a6949..0000000 --- a/etc/yasnippet/snippets/latex-mode/itemize +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: itemize -# key: u -# -- -\begin{itemize} -\item $0 -\end{itemize} \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/label b/etc/yasnippet/snippets/latex-mode/label deleted file mode 100644 index 8a98d7e..0000000 --- a/etc/yasnippet/snippets/latex-mode/label +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: label -# key: lbl -# -- -\label{$0} \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/newcommand b/etc/yasnippet/snippets/latex-mode/newcommand deleted file mode 100644 index e9e03ca..0000000 --- a/etc/yasnippet/snippets/latex-mode/newcommand +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: newcommand -# key: cmd -# -- -\newcommand{\\${1:name}}${2:[${3:0}]}{$0} \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/ref b/etc/yasnippet/snippets/latex-mode/ref deleted file mode 100644 index 7eef596..0000000 --- a/etc/yasnippet/snippets/latex-mode/ref +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: ref -# key: r -# -- -$1${2:~}\ref{${3:$$(unless yas-modified-p (reftex-reference nil nil))}}$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/section b/etc/yasnippet/snippets/latex-mode/section deleted file mode 100644 index e1a2710..0000000 --- a/etc/yasnippet/snippets/latex-mode/section +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: section -# key: s -# -- -\section{${1:name}} -\label{sec:${2:label}} - -$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/subsection b/etc/yasnippet/snippets/latex-mode/subsection deleted file mode 100644 index ddfa13d..0000000 --- a/etc/yasnippet/snippets/latex-mode/subsection +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: subsection -# key: ss -# -- -\subsection{${1:name}} -\label{sec:${2:label}} - -$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/textbf b/etc/yasnippet/snippets/latex-mode/textbf deleted file mode 100644 index 84171d7..0000000 --- a/etc/yasnippet/snippets/latex-mode/textbf +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: textbf -# key: b -# -- -\textbf{$1}$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/texttt b/etc/yasnippet/snippets/latex-mode/texttt deleted file mode 100644 index 43cd769..0000000 --- a/etc/yasnippet/snippets/latex-mode/texttt +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: texttt -# key: tt -# -- -\texttt{$1}$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/latex-mode/usepackage b/etc/yasnippet/snippets/latex-mode/usepackage deleted file mode 100644 index 3405077..0000000 --- a/etc/yasnippet/snippets/latex-mode/usepackage +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: usepackage -# key: p -# -- -\usepackage{$0} \ No newline at end of file diff --git a/etc/yasnippet/snippets/log-edit-mode/thankgnu b/etc/yasnippet/snippets/log-edit-mode/thankgnu deleted file mode 100644 index bf29b63..0000000 --- a/etc/yasnippet/snippets/log-edit-mode/thankgnu +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: thankgnu -# key: th -# -- -[RT#$1] Add ${2:$$(yas-choose-value '("Contributor" "Sustaining Contributor" "Patron"))} $3 to the 20${4:20} ThankGNUs list$0 \ No newline at end of file diff --git a/etc/yasnippet/snippets/message-mode/thankgnu b/etc/yasnippet/snippets/message-mode/thankgnu deleted file mode 100644 index 0d10448..0000000 --- a/etc/yasnippet/snippets/message-mode/thankgnu +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: thankgnu -# key: th -# -- -Added ${2:$$(yas-choose-value '("Contributor" "Sustaining Contributor" "Patron"))} $3 to 20${4:20}supporters.html. - -Moving to campaigns.$0 -- cgit v1.2.3-60-g2f50