diff options
| author | Thomas Schneider <qsx@qsx.re> | 2017-07-18 09:32:34 +0200 |
|---|---|---|
| committer | Thomas Schneider <qsx@qsx.re> | 2017-07-18 09:32:34 +0200 |
| commit | 30ea70cdd3fb2928b8268d133a05aaa68b59baca (patch) | |
| tree | 00d65a0c8e46092bebf5c9c7e1dec87b6adfb0bf | |
| parent | ba15295f8554a546d74b5789eb68b438ddb7dc90 (diff) | |
Clean Emacs config
Signed-off-by: Thomas Schneider <qsx@qsx.re>
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | dot.emacs.d/.gitignore | 1 | ||||
| -rw-r--r-- | dot.emacs.d/elisp/auctex_custom.el | 24 | ||||
| -rw-r--r-- | dot.emacs.d/elisp/doc-mode.el | 253 | ||||
| m--------- | dot.emacs.d/elisp/use-package | 0 | ||||
| -rw-r--r-- | dot.emacs.d/init.el | 37 |
6 files changed, 36 insertions, 282 deletions
diff --git a/.gitmodules b/.gitmodules index a4e7de0..19e62af 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "dot.vim/bundle/cisco.vim"] path = dot.vim/bundle/cisco.vim url = https://github.com/momota/cisco.vim +[submodule "dot.emacs.d/elisp/use-package"] + path = dot.emacs.d/elisp/use-package + url = https://github.com/jwiegley/use-package diff --git a/dot.emacs.d/.gitignore b/dot.emacs.d/.gitignore new file mode 100644 index 0000000..c563e5f --- /dev/null +++ b/dot.emacs.d/.gitignore @@ -0,0 +1 @@ +/elpa
\ No newline at end of file diff --git a/dot.emacs.d/elisp/auctex_custom.el b/dot.emacs.d/elisp/auctex_custom.el deleted file mode 100644 index 3147ce7..0000000 --- a/dot.emacs.d/elisp/auctex_custom.el +++ /dev/null @@ -1,24 +0,0 @@ -;;; Anpassungen für AucTeX -(load "auctex.el" nil t t) -(load "preview-latex.el" nil t t) -(require 'tex-site) -(setq TeX-auto-save t) -(setq TeX-parse-self t) -(setq-default TeX-master nil) -(setq TeX-PDF-mode t) ;; .pdf statt .dvi per default -;;Zeilenumbruch -(add-hook 'LaTeX-mode-hook 'turn-on-auto-fill) -;;Syntax Higlight -(add-hook 'LaTeX-mode-hook 'turn-on-font-lock) -;; Mathe Modus -(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode) -;;; Anpassungen für RefTeX -(require 'reftex) -(add-hook 'LaTeX-mode-hook 'turn-on-reftex) -(add-hook 'latex-mode-hook 'turn-on-reftex) -(setq reftex-plug-into-AUCTeX t) -(setq reftex-external-file-finders - '(("tex" . "kpsewhich -format=.tex %f") - ("bib" . "kpsewhich -format=.bib %f"))) -(require 'auctex-latexmk) -(auctex-latexmk-setup) diff --git a/dot.emacs.d/elisp/doc-mode.el b/dot.emacs.d/elisp/doc-mode.el deleted file mode 100644 index db7be1e..0000000 --- a/dot.emacs.d/elisp/doc-mode.el +++ /dev/null @@ -1,253 +0,0 @@ -;;; doc-mode.el --- a major-mode for highlighting a hierarchy structured text. - -;; @Author: SUN, Tong <suntong001@users.sf.net>, (c)2001-6, all right reserved -;; @Version: $Date: 2006/01/19 03:13:41 $ $Revision: 1.14 $ -;; @Keywords: text, processes, tools -;; @Home URL: http://xpt.sourceforge.net/ -;; -;; Distribute freely, but please include the author's info & copyright, -;; the file's version & url with the distribution. -;; -;; Support free software movement! Please send you comments, suggestions, bug -;; reports, patches to the author from the xpt project home URL. They are -;; warmly welcome. Thank you for using the tools from the xpt project. -;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;;{{{ Commentary: - -;; -;; To enter doc-mode automatically, add (autoload 'doc-mode "doc-mode") -;; to your .emacs file and change the first line of your doc file to: -;; # -*- Doc -*- -;; if it doesn't have a .doc extension. -;; -;; To handle .doc files, e.g., 'filename.doc', add something like -;; (add-to-list 'auto-mode-alist '("\\.doc$" . doc-mode)) -;; to your .emacs file - -;; -;; The documentation for the "Structure Of The Hierarchy Text" can be found in -;; the docstring for the doc-mode function. -;; - -;;}}} - -;;{{{ Variables: - -(defgroup doc-faces nil - "AsciiDoc highlighting" - :group 'docs) - -;; == Colors -; color n is more prominent than color n+1 - -(defface doc-title-1-face - `((((class color) - (background dark)) - (:foreground "brown3" :bold t :height 1.2 :inherit variable-pitch)) - (((class color) - (background light)) - (:foreground "brown3" :bold t :height 1.2 :inherit variable-pitch)) - (t (:weight bold :inherit variable-pitch))) - "Face for AsciiDoc titles at level 1." - :group 'doc-faces) - -(defface doc-title-2-face - `((((class color) - (background dark)) - (:foreground "DeepPink2" :bold t :height 1.1 :inherit variable-pitch)) - (((class color) - (background light)) - (:foreground "DeepPink2" :bold t :height 1.1 :inherit variable-pitch)) - (t (:weight bold :inherit variable-pitch))) - "Face for AsciiDoc titles at level 2." - :group 'doc-faces) - -(defface doc-title-3-face - `((((class color) - (background dark)) - (:foreground "sienna3" :bold t)) - (((class color) - (background light)) - (:foreground "sienna3" :bold t)) - (t (:weight bold))) - "Face for AsciiDoc titles at level 3." - :group 'doc-faces) - -(defface doc-title-4-face - `((((class color) - (background dark)) - (:foreground "burlywood3")) - (((class color) - (background light)) - (:foreground "burlywood3")) - (t ())) - "Face for AsciiDoc titles at level 4." - :group 'doc-faces) - -(defface info-node - '((((class color) (background light)) (:foreground "brown" :bold t :italic t)) - (((class color) (background dark)) (:foreground "white" :bold t :italic t)) - (t (:bold t :italic t))) - "Face for Info node names." - :group 'doc-faces) - -(defvar doc-title-1 'doc-title-1-face) -(defvar doc-title-2 'doc-title-2-face) -(defvar doc-title-3 'doc-title-3-face) -(defvar doc-title-4 'doc-title-4-face) - -(defvar general-font-lock-red1 font-lock-warning-face) -(defvar general-font-lock-red2 font-lock-comment-face) -(defvar general-font-lock-red3 font-lock-string-face) - -(defvar general-font-lock-green1 font-lock-type-face) -(defvar general-font-lock-green2 font-lock-constant-face) - -(defvar general-font-lock-blue1 font-lock-keyword-face) -(defvar general-font-lock-blue2 font-lock-function-name-face) -(defvar general-font-lock-blue3 font-lock-builtin-face) - -(defvar general-font-lock-yellow1 font-lock-variable-name-face) -(defvar general-font-lock-yellow2 font-lock-comment-face) - -;; == doc-mode settings - -(defvar doc-mode-hook nil - "Normal hook run when entering Doc Text mode.") - -(defvar doc-mode-abbrev-table nil - "Abbrev table in use in Doc-mode buffers.") -(define-abbrev-table 'doc-mode-abbrev-table ()) - -(defconst doc-font-lock-keywords - (eval-when-compile - (list - - ;; Section titles - (cons "^==? +.*" 'doc-title-1) - (cons "^=== +.*" 'doc-title-2) - (cons "^==== +.*" 'doc-title-3) - (cons "^===== +.*" 'doc-title-4) - - ;; Delimited blocks - (cons "^[-=+*_]\\{6,\\} *\$" 'general-font-lock-yellow1) - (cons "^\\.\\{6,\\} *\$" 'general-font-lock-yellow2) - (cons "^\\.[A-Z].*\$" 'general-font-lock-yellow2) - - ;; Misc specials - (cons "^.*\\?\\? *\$" 'doc-title-4) - (cons "^.*[:;][:;-] *\$" 'general-font-lock-blue2) - - ;; Comment Lines - (cons "^//.*" 'general-font-lock-blue3) - - ;; Auxiliary directives - (cons "^>>[{}=]+ .*" 'general-font-lock-green1) - (cons "^<< +.*" 'general-font-lock-blue3) - - ;; Annotation - (cons "\\*[A-Z]+\\*:" 'general-font-lock-red1) - - )) - "Default expressions to highlight in AsciiDoc mode.") - -;;}}} - -;;{{{ Doc & Autoload: - -;;###autoload -(define-derived-mode doc-mode text-mode "DOC" - "Major mode for editing AsciiDoc text files. -Turning on Doc mode runs the normal hook `doc-mode-hook'. - -Document Structure - -Titles consist of a line starting with one or more equals characters (the -number of equals corresponds the section level) followed by a space followed -by the title text. E.g.: - - = Document Title (level 0) - == Section title (level 1) - === Section title (level 2) - ==== Section title (level 3) - ===== Section title (level 4) - -Auxiliary directives. - -<< Last update time - ->>{{{ folding start tag ->>}}} folding end tag -Group frames into folders. - -Example: - -== A Certain Unix Tool - -=== Basic Info - -==== Usage - -// This is a hidden comment. - -ListingBlocks are rendered verbatim in a monospaced font, they retain -line and whitespace formatting and often distinguished by a background -or border. There is no text formatting or substitutions within -Listing blocks apart from Special Characters and Callouts. Listing -blocks are often used for code and file listings. - --------------------------------------- -#include <stdio.h> - -int main() { - printf(\"Hello World!\\n\"); - exit(0); -} --------------------------------------- - -===== Description - -===== Features - -=== Version - -==== Dependencies - -==== Installation - -===== Steps - -===== Help - -<< 14:16:27 -" - (interactive) - (modify-syntax-entry ?\' ".") - ;(flyspell-mode nil) - - (make-local-variable 'paragraph-start) - (setq paragraph-start (concat "$\\|>" page-delimiter)) - (make-local-variable 'paragraph-separate) - (setq paragraph-separate paragraph-start) - (make-local-variable 'paragraph-ignore-fill-prefix) - (setq paragraph-ignore-fill-prefix t) - - (make-local-variable 'require-final-newline) - (setq require-final-newline t) - - (make-local-variable 'font-lock-defaults) - (setq font-lock-defaults - '(doc-font-lock-keywords - nil ; KEYWORDS-ONLY: no - nil ; CASE-FOLD: no - ((?_ . "w")) ; SYNTAX-ALIST - )) - (run-hooks 'doc-mode-hook)) - -(provide 'doc-mode) - -;;}}} - -;;; doc-mode.el ends here - diff --git a/dot.emacs.d/elisp/use-package b/dot.emacs.d/elisp/use-package new file mode 160000 +Subproject 7b055494e39efba8b237202b7c97f40aa19e257 diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index c9fb1bb..8da1b92 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -1,11 +1,38 @@ +(package-initialize) + (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/") t) -(add-to-list 'auto-mode-alist '("\\.doc$" . doc-mode)) -(add-to-list 'load-path "~/.emacs.d/elisp/") -(add-to-list 'auto-mode-alist '("\\.asciidoc$" . doc-mode)) -(autoload 'doc-mode "doc-mode") -;(load-library "auctex_custom") + +(let ((default-directory + (concat user-emacs-directory + (convert-standard-filename "elisp/")))) + (normal-top-level-add-subdirs-to-load-path)) + +(require 'use-package) + (server-start) + +(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. + '(custom-enabled-themes (quote (sanityinc-tomorrow-blue))) + '(custom-safe-themes + (quote + ("82d2cac368ccdec2fcc7573f24c3f79654b78bf133096f9b40c20d97ec1d8016" default))) + '(package-selected-packages (quote (color-theme-sanityinc-tomorrow))) + '(scroll-bar-adjust-thumb-portion nil)) +(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. + ) + +(use-package color-theme-sanityinc-tomorrow + :ensure t + :config (color-theme-sanityinc-tomorrow-blue)) |
