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")
|
2020-11-03 20:27:27 +01:00
|
|
|
(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'."
|
2020-09-17 17:03:55 +02:00
|
|
|
;(olivetti-mode)
|
2020-10-30 15:42:35 +01:00
|
|
|
(require 'olivetti)
|
2020-07-17 08:39:06 +02:00
|
|
|
(olivetti-set-width 82))
|
2020-09-17 17:03:55 +02:00
|
|
|
(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:27:27 +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-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)
|