emacs.d/init.el
2020-10-09 10:48:02 +02:00

37 lines
1.4 KiB
EmacsLisp
Executable file

(add-to-list 'load-path (expand-file-name "~/.emacs.d/bundle/"))
(load "bundle--server")
(load "bundle--package")
(load "bundle--customfile")
(load "bundle--keys")
(load "bundle--coding")
;; (load-theme 'nord t)
(require 'color-theme-sanityinc-tomorrow)
(defalias 'yes-or-no-p 'y-or-n-p)
(org-clock-persistence-insinuate)
;; HOOKS
(add-hook 'diary-display-hook 'fancy-diary-display)
(add-hook 'today-visible-calendar-hook 'calendar-mark-today)
(add-hook 'write-file-hooks 'delete-trailing-whitespace)
(add-hook 'diary-list-entries-hook 'diary-include-other-diary-files)
(add-hook 'diary-mark-entries-hook 'diary-mark-included-diary-files)
(defun me/org-mode ()
"My custom configuration for 'org-mode'."
;(olivetti-mode)
(olivetti-set-width 82))
(add-hook 'nov-mode-hook 'me/org-mode)
(add-hook 'org-mode-hook 'turn-on-auto-fill)
(add-hook 'rst-mode-hook 'turn-on-orgstruct)
(add-hook 'newsticker-mode-hook 'imenu-add-menubar-index)
(add-to-list 'auto-mode-alist '("\\.tmpl\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.lisp$" . lisp-mode))
(add-to-list 'auto-mode-alist '("\\.lsp$" . lisp-mode))
(add-to-list 'auto-mode-alist '("\\.cl$" . lisp-mode))
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
(add-to-list 'auto-mode-alist '("\\.[Cc][Ss][Vv]\\'" . csv-mode))
(put 'narrow-to-region 'disabled nil)
(put 'narrow-to-page 'disabled nil)
(load "bundle--mk")