emacs.d/init.el

46 lines
1.6 KiB
EmacsLisp
Raw Normal View History

2020-07-26 14:36:43 +02:00
(add-to-list 'load-path (expand-file-name "~/.emacs.d/bundle/"))
(load "bundle--server")
2020-08-20 18:47:45 +02:00
(load "bundle--package")
(load "bundle--customfile")
2020-07-26 14:36:43 +02:00
(load "bundle--keys")
(load "bundle--coding")
2020-10-21 13:56:13 +02:00
(load "bundle--holidays")
2020-10-29 15:40:29 +01:00
(load "bundle--latex")
(load "bundle--mk")
2020-07-13 16:45:12 +02:00
;; (load-theme 'nord t)
(require 'color-theme-sanityinc-tomorrow)
2020-06-22 15:23:52 +02:00
(defalias 'yes-or-no-p 'y-or-n-p)
(org-clock-persistence-insinuate)
2020-05-15 16:07:46 +02:00
;; HOOKS
2020-06-22 15:23:52 +02:00
(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)
2020-08-31 18:18:36 +02:00
(add-hook 'diary-list-entries-hook 'diary-include-other-diary-files)
(add-hook 'diary-mark-entries-hook 'diary-mark-included-diary-files)
2020-07-17 08:39:06 +02:00
(defun me/org-mode ()
"My custom configuration for 'org-mode'."
;(olivetti-mode)
2020-10-30 15:42:35 +01:00
(require 'olivetti)
2020-07-17 08:39:06 +02:00
(olivetti-set-width 82))
(add-hook 'nov-mode-hook 'me/org-mode)
2020-06-22 15:23:52 +02:00
(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)
2020-11-03 20:43:47 +01:00
(if (display-graphic-p)
2020-11-03 20:40:38 +01:00
(add-hook 'after-init-hook (lambda ()
(org-agenda-list)
(me/split-windows-horizontal))))
2020-08-12 11:25:24 +02:00
2020-06-22 15:23:52 +02:00
(add-to-list 'auto-mode-alist '("\\.tmpl\\'" . web-mode))
2020-08-12 11:25:24 +02:00
(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))
2020-09-02 18:30:03 +02:00
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
2020-09-25 18:56:33 +02:00
(add-to-list 'auto-mode-alist '("\\.[Cc][Ss][Vv]\\'" . csv-mode))
2020-11-15 13:41:09 +01:00
(add-to-list 'slime-contribs 'slime-autodoc)
2020-05-15 16:07:46 +02:00
2020-06-22 15:23:52 +02:00
(put 'narrow-to-region 'disabled nil)
2020-06-23 19:30:37 +02:00
(put 'narrow-to-page 'disabled nil)