2017-03-20 22:56:18 +01:00
|
|
|
(setq user-full-name "Marcel Kapfer")
|
2016-12-04 23:19:35 +01:00
|
|
|
(setq user-mail-address "marcelmichaelkapfer@gmail.com")
|
2016-07-23 23:20:04 +02:00
|
|
|
|
|
|
|
(load "package")
|
|
|
|
(package-initialize)
|
|
|
|
(add-to-list 'package-archives
|
2017-03-20 22:56:18 +01:00
|
|
|
'("marmalade" . "https://marmalade-repo.org/packages/"))
|
2016-07-23 23:20:04 +02:00
|
|
|
(add-to-list 'package-archives
|
2017-03-20 22:56:18 +01:00
|
|
|
'("melpa" . "https://melpa.milkbox.net/packages/"))
|
2016-07-23 23:20:04 +02:00
|
|
|
(setq package-archive-enable-alist '(("melpa" deft magit)))
|
|
|
|
|
|
|
|
(defalias 'yes-or-no-p 'y-or-n-p)
|
|
|
|
|
|
|
|
;; Org mode settings
|
|
|
|
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
|
|
|
|
(global-set-key "\C-cl" 'org-store-link)
|
|
|
|
(global-set-key "\C-ca" 'org-agenda)
|
|
|
|
(global-font-lock-mode 1)
|
|
|
|
|
|
|
|
;; Always show line numbers
|
2017-07-20 23:57:50 +02:00
|
|
|
(global-nlinum-mode t)
|
2016-07-23 23:20:04 +02:00
|
|
|
|
|
|
|
;; Highlight current line
|
|
|
|
(global-hl-line-mode t)
|
|
|
|
|
|
|
|
;; Autocomplete
|
|
|
|
(require 'auto-complete)
|
|
|
|
(global-auto-complete-mode t)
|
|
|
|
|
2017-02-15 10:32:15 +01:00
|
|
|
;; Save backup files in temporary directory
|
|
|
|
(setq backup-directory-alist
|
|
|
|
`((".*" . ,temporary-file-directory)))
|
2016-07-23 23:20:04 +02:00
|
|
|
(setq auto-save-file-name-transforms
|
2017-02-15 10:32:15 +01:00
|
|
|
`((".*" ,temporary-file-directory t)))
|
2016-12-04 23:19:35 +01:00
|
|
|
|
|
|
|
;; Mutt support.
|
|
|
|
(setq auto-mode-alist (append '(("/tmp/mutt.*" . mail-mode)) auto-mode-alist))
|
|
|
|
|
|
|
|
(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.
|
2017-02-15 10:32:15 +01:00
|
|
|
'(ansi-color-names-vector
|
|
|
|
["#3c3836" "#fb4934" "#b8bb26" "#fabd2f" "#83a598" "#d3869b" "#8ec07c" "#ebdbb2"])
|
2017-01-21 23:45:27 +01:00
|
|
|
'(csv-separators (quote (";")))
|
2017-07-19 14:30:53 +02:00
|
|
|
'(custom-enabled-themes (quote (atom-one-dark)))
|
2016-12-04 23:19:35 +01:00
|
|
|
'(custom-safe-themes
|
|
|
|
(quote
|
2017-07-19 14:31:23 +02:00
|
|
|
("e9460a84d876da407d9e6accf9ceba453e2f86f8b86076f37c08ad155de8223c" "d29231b2550e0d30b7d0d7fc54a7fb2aa7f47d1b110ee625c1a56b30fea3be0f" "c7a9a68bd07e38620a5508fef62ec079d274475c8f92d75ed0c33c45fbe306bc" "eb0a314ac9f75a2bf6ed53563b5d28b563eeba938f8433f6d1db781a47da1366" "a1289424bbc0e9f9877aa2c9a03c7dfd2835ea51d8781a0bf9e2415101f70a7e" "10e231624707d46f7b2059cc9280c332f7c7a530ebc17dba7e506df34c5332c4" "08b8807d23c290c840bbb14614a83878529359eaba1805618b3be7d61b0b0a32" "43bc55af3857f9e2dc14c4413739f36d758e4d75bcd9b67e9b7dc6d9fcc1db68" "6254372d3ffe543979f21c4a4179cd819b808e5dd0f1787e2a2a647f5759c1d1" "1160f5fc215738551fce39a67b2bcf312ed07ef3568d15d53c87baa4fd1f4d4e" default)))
|
2017-03-28 11:59:26 +02:00
|
|
|
'(ecb-options-version "2.50")
|
2017-02-15 10:32:15 +01:00
|
|
|
'(fci-rule-color "#3E4451")
|
2017-08-10 09:25:12 +02:00
|
|
|
'(flycheck-python-pylint-executable "pylint3")
|
2016-12-04 23:30:11 +01:00
|
|
|
'(inhibit-startup-screen t)
|
2017-02-05 19:32:37 +01:00
|
|
|
'(jdee-global-classpath (quote ("/home/wilson/jdee-libs/")))
|
|
|
|
'(jdee-server-dir "/opt/jdee-emacs-server/")
|
2017-05-20 20:22:02 +02:00
|
|
|
'(org-agenda-files (quote ("~/ownCloud/todo.org")))
|
2016-12-04 23:30:11 +01:00
|
|
|
'(package-selected-packages
|
|
|
|
(quote
|
2017-08-10 09:25:12 +02:00
|
|
|
(beginend doom-themes neotree rainbow-delimiters projectile nlinum powerline airline-themes fic-mode markdown-preview-mode web-mode ob-dart ac-python ac-slime ant auctex-lua auto-compile auto-complete-auctex csv-mode csv ac-haskell-process ghc haskell-mode arduino-mode json-mode gruvbox-theme focus literate-coffee-mode jdee javadoc-lookup pkgbuild-mode vala-snippets vala-mode phpunit ac-php php-completion php+-mode fish-mode hugo mips-mode stumpwm-mode slime muttrc-mode diff-hl magit wanderlust ## auctex yaml-mode typescript sass-mode php-mode outlined-elisp-mode monokai-theme markdown-mode fill-column-indicator edit-server dracula-theme coffee-mode auto-complete atom-one-dark-theme atom-dark-theme)))
|
2017-05-20 20:22:20 +02:00
|
|
|
'(safe-local-variable-values (quote ((TeX-Engine . luatex))))
|
|
|
|
'(send-mail-function (quote smtpmail-send-it))
|
2017-05-20 20:19:21 +02:00
|
|
|
'(standard-indent 2)
|
2017-05-20 20:20:18 +02:00
|
|
|
'(tool-bar-mode nil)
|
2017-05-20 20:19:21 +02:00
|
|
|
'(web-mode-code-indent-offset 2)
|
|
|
|
'(web-mode-indent-style 2))
|
2017-03-28 11:59:26 +02:00
|
|
|
'(send-mail-function (quote smtpmail-send-it))
|
|
|
|
'(tool-bar-mode nil)
|
2016-12-04 23:19:35 +01:00
|
|
|
(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.
|
2017-07-21 10:13:45 +02:00
|
|
|
'(default ((t (:family "Hermit" :foundry "unknown" :slant normal :weight normal :height 90 :width normal))))
|
|
|
|
'(cursor ((t (:background "light gray")))))
|
2016-12-04 23:19:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
;; edit-server
|
|
|
|
|
|
|
|
(require 'edit-server)
|
|
|
|
(edit-server-start)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; mmk2410 emacs configuration
|
|
|
|
|
|
|
|
;; variabels
|
|
|
|
|
|
|
|
;;; always follow symlinks to git repos
|
|
|
|
(setq vc-follow-symlinks t)
|
|
|
|
|
|
|
|
;;; set default column width
|
|
|
|
(setq-default fill-column 80)
|
|
|
|
|
2016-12-05 22:01:43 +01:00
|
|
|
;;; settings for bells
|
|
|
|
(setq visible-bell 1)
|
|
|
|
|
|
|
|
;;; hide tool bar and menu bar
|
|
|
|
(menu-bar-mode 0)
|
|
|
|
(tool-bar-mode 0)
|
2016-12-08 05:52:21 +01:00
|
|
|
(scroll-bar-mode 0)
|
2016-12-05 22:01:43 +01:00
|
|
|
|
2017-03-28 11:12:02 +02:00
|
|
|
;;; window / frame size
|
|
|
|
(setq initial-frame-alist
|
|
|
|
'(
|
|
|
|
(width . 102)
|
|
|
|
(height . 44)
|
|
|
|
))
|
|
|
|
|
|
|
|
(setq default-frame-alist
|
|
|
|
'(
|
|
|
|
(width . 100)
|
|
|
|
(height . 42)
|
|
|
|
))
|
|
|
|
|
2017-05-20 20:19:21 +02:00
|
|
|
;;; indention
|
|
|
|
|
|
|
|
(setq-default indent-tabs-mode nil)
|
|
|
|
(setq tab-width 2)
|
|
|
|
|
2016-12-05 22:01:43 +01:00
|
|
|
;;; slime
|
|
|
|
(load (expand-file-name "~/quicklisp/slime-helper.el"))
|
|
|
|
(setq inferior-lisp-program "/usr/bin/sbcl")
|
|
|
|
(setq slime-contribs '(slime-fancy))
|
2016-12-04 23:19:35 +01:00
|
|
|
|
|
|
|
;; packages
|
|
|
|
|
|
|
|
;;; fill-column indicator
|
|
|
|
|
|
|
|
(require 'fill-column-indicator)
|
|
|
|
(setq fci-rule-width 5) ;;; set rule width to 5px
|
2016-12-05 22:01:43 +01:00
|
|
|
|
|
|
|
;;; diff-hl
|
2016-12-18 17:41:08 +01:00
|
|
|
(global-diff-hl-mode t)
|
2016-12-05 22:01:43 +01:00
|
|
|
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
|
2016-12-23 22:06:39 +01:00
|
|
|
|
|
|
|
;; stumpwm: working with emacsclient
|
|
|
|
(add-hook 'after-init-hook 'server-start)
|
|
|
|
(setq server-raise-frame t)
|
|
|
|
|
|
|
|
(if window-system
|
|
|
|
(add-hook 'server-done-hook
|
|
|
|
(lambda ()
|
|
|
|
(shell-command
|
|
|
|
"stumpish 'eval (stumpwm::return-es-called-win stumpwm::*es-win*)'"))))
|
2017-01-11 11:24:17 +01:00
|
|
|
|
2017-01-21 23:45:27 +01:00
|
|
|
;; auto-fill-mode
|
2017-03-28 11:12:02 +02:00
|
|
|
(add-hook 'mail-mode-hook 'auto-fill-mode)
|
|
|
|
(add-hook 'mail-mode-hook (lambda () (setq fill-column 72)))
|
2017-01-21 23:45:27 +01:00
|
|
|
(global-set-key (kbd "C-c q") 'auto-fill-mode)
|
|
|
|
|
|
|
|
;; predictive mode
|
|
|
|
(add-to-list 'load-path "~/.emacs.d/pkg/predictive/")
|
|
|
|
(add-to-list 'load-path "~/.emacs.d/pkg/predictive/latex/")
|
|
|
|
(add-to-list 'load-path "~/.emacs.d/pkg/predictive/texinfo/")
|
|
|
|
(add-to-list 'load-path "~/.emacs.d/pkg/predictive/html/")
|
2017-05-20 20:20:03 +02:00
|
|
|
(add-to-list 'load-path "~/.emacs.d/pkg/predictive/misc/")
|
2017-01-21 23:45:27 +01:00
|
|
|
(autoload 'predictive-mode "predictive" "predictive" t)
|
|
|
|
(set-default 'predictive-auto-add-to-dict t)
|
|
|
|
(setq predictive-main-dict 'rpg-dictionary
|
|
|
|
predictive-auto-learn t
|
|
|
|
predictive-add-to-dict-ask nil
|
|
|
|
predictive-use-auto-learn-cache nil
|
|
|
|
predictive-which-dict t)
|
2017-07-19 14:31:23 +02:00
|
|
|
|
|
|
|
;; org mode
|
|
|
|
|
|
|
|
(unless (boundp 'org-latex-classes)
|
|
|
|
(setq org-latex-classes nil))
|
|
|
|
|
|
|
|
;;; latex scrartcl as documentclass
|
|
|
|
|
|
|
|
(add-to-list 'org-latex-classes
|
|
|
|
'("scrartcl"
|
|
|
|
"\\documentclass{scrartcl}"
|
|
|
|
("\\section{%s}" . "\\section*{%s}")
|
|
|
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
|
|
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
|
|
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
|
|
|
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
|
|
|
|
|
2017-07-21 10:23:08 +02:00
|
|
|
;;; add latex packages and configurations
|
|
|
|
(setq org-latex-packages-alist
|
|
|
|
'(
|
|
|
|
("" "booktabs" t)
|
|
|
|
("" "listings" t)
|
|
|
|
("" "xcolor" t)
|
|
|
|
("" "polyglossia" t)
|
|
|
|
("utf8" "luainputenc" t)
|
|
|
|
("" "fontspec" t)
|
|
|
|
("hidelinks" "hyperref" t)
|
|
|
|
("" "libertineotf" t)
|
|
|
|
("scale=0.9" "AnonymousPro" t)
|
|
|
|
"\\setmainfont{Linux Libertine O}"
|
|
|
|
"\\setsansfont{Linux Biolinum O}"
|
|
|
|
"\\setmonofont{AnonymousPro}"
|
|
|
|
"\\addtokomafont{disposition}{\\fontspec{LinBiolinum_RB}}"
|
|
|
|
"\\setdefaultlanguage{german}"))
|
|
|
|
|
|
|
|
;;; enable latex listings
|
|
|
|
(setq org-latex-listings 'listings)
|
|
|
|
|
|
|
|
;;; latex listings options
|
|
|
|
(setq org-latex-listings-options
|
|
|
|
'(
|
|
|
|
("frame" "single")
|
|
|
|
("rulesep" "6pt")
|
|
|
|
("backgroundcolor" "\\color{gray!20}")
|
|
|
|
("basicstyle" "\\footnotesize\\ttfamily")
|
|
|
|
("breaklines" "true")
|
|
|
|
))
|
|
|
|
|
|
|
|
;;; remove unused default packages
|
|
|
|
(unless (boundp 'org-latex-default-packages-alist)
|
|
|
|
(setq org-latex-default-packages-alist nil))
|
|
|
|
(setq org-latex-default-packages-alist
|
|
|
|
(remove '("AUTO" "inputenc" t) org-latex-default-packages-alist))
|
|
|
|
(setq org-latex-default-packages-alist
|
|
|
|
(remove '("" "fixltx2e" nil) org-latex-default-packages-alist))
|
|
|
|
(setq org-latex-default-packages-alist
|
|
|
|
(remove '("" "hyperref" nil) org-latex-default-packages-alist))
|
|
|
|
(setq org-latex-default-packages-alist
|
|
|
|
(remove '"\\tolerance=1000" org-latex-default-packages-alist))
|
|
|
|
|
2017-07-19 14:31:23 +02:00
|
|
|
;;; syntax highlighting
|
|
|
|
|
|
|
|
(setq org-src-fontify-natively t)
|
2017-07-20 22:37:05 +02:00
|
|
|
|
2017-07-21 00:01:21 +02:00
|
|
|
;; neotree toggle
|
|
|
|
(global-set-key [f8] 'neotree-toggle)
|
2017-07-20 22:37:05 +02:00
|
|
|
|
2017-07-21 00:01:41 +02:00
|
|
|
;; magit status key
|
|
|
|
(global-set-key [f5] 'magit-status)
|
2017-07-20 22:37:05 +02:00
|
|
|
|
2017-07-21 00:02:24 +02:00
|
|
|
;; enable rainbow delimiters mode in programming modes
|
|
|
|
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
|
2017-07-20 22:37:05 +02:00
|
|
|
|
2017-07-21 00:02:40 +02:00
|
|
|
;; enable powerline modeline
|
|
|
|
(powerline-center-theme)
|
2017-07-20 22:37:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
; ((Lua)La)TeX configuration using auctex
|
|
|
|
|
|
|
|
;; variables
|
|
|
|
|
|
|
|
;;; Automatically save style information when saving the buffer.
|
|
|
|
(setq TeX-auto-save t)
|
|
|
|
|
|
|
|
;;; Parse file after loading it if no style hook is found for it.
|
|
|
|
(setq TeX-parse-self t)
|
|
|
|
|
|
|
|
;;; Don't ask the user when saving a file for each file.
|
|
|
|
(setq TeX-save-query nil)
|
|
|
|
|
|
|
|
;;; Use luatex as default TeX engine.
|
|
|
|
(setq TeX-engine (quote luatex))
|
|
|
|
|
|
|
|
;;; Outline mode keyboard shortcut.
|
|
|
|
(setq outline-minor-mode-prefix "\C-c \C-o")
|
|
|
|
|
|
|
|
;;; set default master file to nil so auctex asks for it.
|
|
|
|
(setq-default TeX-master nil)
|
|
|
|
|
|
|
|
;;; enable reftex auctex interaction.
|
|
|
|
(setq reftex-plug-into-auctex t)
|
|
|
|
|
|
|
|
;;; add the latex mode to the autocomplete modes.
|
|
|
|
(add-to-list 'ac-modes 'latex-mode)
|
|
|
|
|
|
|
|
;;; enable synctex correlation.
|
|
|
|
(setq TeX-source-correlate-mode t
|
|
|
|
TeX-source-correlate-start-server t)
|
|
|
|
|
|
|
|
;; functions
|
|
|
|
|
|
|
|
;;; function for enabling outline mode
|
|
|
|
(defun turn-on-outline-minor-mode ()
|
|
|
|
(outline-minor-mode 1))
|
|
|
|
|
|
|
|
;;; autocompletion for latex
|
|
|
|
;;;; does this really work?
|
|
|
|
(defun ac-latex-mode-setup ()
|
|
|
|
(setq ac-sources
|
|
|
|
(append '(ac-source-math-unicode ac-source-math-latex ac-source-latex-commands)
|
|
|
|
ac-sources)))
|
|
|
|
|
|
|
|
(eval-after-load "tex"
|
|
|
|
'(setcar (cdr (assoc 'output-pdf TeX-view-program-selection)) "Okular"))
|
|
|
|
|
|
|
|
;; hooks
|
|
|
|
|
|
|
|
;;; hooks for outline mode
|
|
|
|
(add-hook 'LaTeX-mode-hook 'turn-on-outline-minor-mode)
|
|
|
|
(add-hook 'latex-mode-hook 'turn-on-outline-minor-mode)
|
|
|
|
|
|
|
|
;;; hook for fci-mode
|
|
|
|
(add-hook 'LaTeX-mode-hook 'fci-mode)
|
|
|
|
|
|
|
|
;;; hook for reftex
|
|
|
|
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
|
|
|
|
|
|
|
|
;;; hook for autocomplete.
|
|
|
|
(add-hook 'TeX-mode-hook 'ac-latex-mode-setup)
|
|
|
|
|
|
|
|
;;; hook for auto fill mode
|
|
|
|
(add-hook 'TeX-mode-hook 'auto-fill-mode)
|
|
|
|
|
|
|
|
;;; hook for latex math mode
|
|
|
|
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
|
|
|
|
|
2017-07-21 00:02:24 +02:00
|
|
|
;;; hook for rainbox delimiters mode
|
|
|
|
(add-hook 'TeX-mode-hook #'rainbow-delimiters-mode)
|
2017-07-21 00:02:57 +02:00
|
|
|
|
|
|
|
; themes
|
|
|
|
|
|
|
|
;; enable bold and italic
|
|
|
|
(setq doom-themes-enable-bold t
|
|
|
|
doom-themes-enable-italic t)
|
|
|
|
|
|
|
|
;;; enable doom one theme
|
|
|
|
(load-theme 'doom-one t)
|
|
|
|
|
|
|
|
;;; enable flashing mode-line on errors
|
|
|
|
(doom-themes-visual-bell-config)
|
|
|
|
|
|
|
|
;;; enable neotree theme
|
|
|
|
(doom-themes-neotree-config)
|