|
|
@@ -664,6 +664,7 @@ Org-mode keybindings and settings, pretty sparse really. |
|
|
:config |
|
|
:config |
|
|
(progn |
|
|
(progn |
|
|
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))) |
|
|
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))) |
|
|
|
|
|
(when window-system |
|
|
(let* ((variable-tuple (cond ((x-list-fonts "Source Sans Pro") '(:font "Source Sans Pro")) |
|
|
(let* ((variable-tuple (cond ((x-list-fonts "Source Sans Pro") '(:font "Source Sans Pro")) |
|
|
((x-list-fonts "Lucida Grande") '(:font "Lucida Grande")) |
|
|
((x-list-fonts "Lucida Grande") '(:font "Lucida Grande")) |
|
|
((x-list-fonts "Verdana") '(:font "Verdana")) |
|
|
((x-list-fonts "Verdana") '(:font "Verdana")) |
|
|
@@ -681,6 +682,7 @@ Org-mode keybindings and settings, pretty sparse really. |
|
|
`(org-level-2 ((t (,@headline ,@variable-tuple :height 1.5)))) |
|
|
`(org-level-2 ((t (,@headline ,@variable-tuple :height 1.5)))) |
|
|
`(org-level-1 ((t (,@headline ,@variable-tuple :height 1.75)))) |
|
|
`(org-level-1 ((t (,@headline ,@variable-tuple :height 1.75)))) |
|
|
`(org-document-title ((t (,@headline ,@variable-tuple :height 1.5 :underline nil)))))) |
|
|
`(org-document-title ((t (,@headline ,@variable-tuple :height 1.5 :underline nil)))))) |
|
|
|
|
|
) |
|
|
(font-lock-add-keywords 'org-mode |
|
|
(font-lock-add-keywords 'org-mode |
|
|
'(("^ +\\([-*]\\) " |
|
|
'(("^ +\\([-*]\\) " |
|
|
(0 (prog1 () (compose-region (match-beginning 1) (match-end 1) "•")))))) |
|
|
(0 (prog1 () (compose-region (match-beginning 1) (match-end 1) "•")))))) |
|
|
@@ -919,7 +921,7 @@ So I write gooder. Me fail English? Thats unpossible. |
|
|
|
|
|
|
|
|
Compress down python configuration a bit. |
|
|
Compress down python configuration a bit. |
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp :tangle no |
|
|
(use-package python |
|
|
(use-package python |
|
|
:commands python-mode |
|
|
:commands python-mode |
|
|
:mode ("\\.py\\'" . python-mode) |
|
|
:mode ("\\.py\\'" . python-mode) |
|
|
@@ -987,12 +989,19 @@ Need to make haskell source be all pretty. |
|
|
:ensure t |
|
|
:ensure t |
|
|
:config |
|
|
:config |
|
|
(progn |
|
|
(progn |
|
|
|
|
|
(use-package intero |
|
|
|
|
|
:ensure t |
|
|
|
|
|
:config |
|
|
|
|
|
(progn |
|
|
|
|
|
(add-hook 'haskell-mode-hook 'intero-mode) |
|
|
|
|
|
) |
|
|
|
|
|
) |
|
|
(use-package hindent |
|
|
(use-package hindent |
|
|
:if (executable-find "hindent") |
|
|
:if (executable-find "hindent") |
|
|
:ensure t |
|
|
:ensure t |
|
|
:config |
|
|
:config |
|
|
(progn |
|
|
(progn |
|
|
(add-hook 'haskell-mode-hook #'hindent-mode) |
|
|
|
|
|
|
|
|
(add-hook 'haskell-mode-hook 'hindent-mode) |
|
|
) |
|
|
) |
|
|
) |
|
|
) |
|
|
(use-package flycheck-haskell :ensure t) |
|
|
(use-package flycheck-haskell :ensure t) |
|
|
@@ -1009,11 +1018,9 @@ Need to make haskell source be all pretty. |
|
|
:config |
|
|
:config |
|
|
(progn |
|
|
(progn |
|
|
(autoload 'ghc-init "ghc" nil t) |
|
|
(autoload 'ghc-init "ghc" nil t) |
|
|
(autoload 'ghc-debug "ghc" nil t) |
|
|
|
|
|
|
|
|
(autoload 'ghc-debug "ghc" nil t) |
|
|
(add-hook 'haskell-mode-hook (lambda () |
|
|
(add-hook 'haskell-mode-hook (lambda () |
|
|
(ghc-init) |
|
|
|
|
|
) |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
(ghc-init))) |
|
|
) |
|
|
) |
|
|
) |
|
|
) |
|
|
(add-hook 'haskell-mode-hook 'interactive-haskell-mode) |
|
|
(add-hook 'haskell-mode-hook 'interactive-haskell-mode) |
|
|
@@ -1052,6 +1059,42 @@ Need to make haskell source be all pretty. |
|
|
) |
|
|
) |
|
|
#+END_SRC |
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
|
|
|
*** idris-mode |
|
|
|
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
|
(use-package idris-mode |
|
|
|
|
|
:ensure t |
|
|
|
|
|
:config |
|
|
|
|
|
(progn |
|
|
|
|
|
(add-to-list 'completion-ignored-extensions ".ibc") |
|
|
|
|
|
(add-hook 'idris-mode-hook' |
|
|
|
|
|
(lambda () |
|
|
|
|
|
(push '("()" . ?∅) prettify-symbols-alist) |
|
|
|
|
|
(push '("\\" . ?λ) prettify-symbols-alist) |
|
|
|
|
|
(push '("pi" . ?π) prettify-symbols-alist) |
|
|
|
|
|
(push '("=>" . ?⇒) prettify-symbols-alist) |
|
|
|
|
|
(push '("->" . ?→) prettify-symbols-alist) |
|
|
|
|
|
(push '("<-" . ?←) prettify-symbols-alist) |
|
|
|
|
|
(push '("<=" . ?≤) prettify-symbols-alist) |
|
|
|
|
|
(push '(">=" . ?≥) prettify-symbols-alist) |
|
|
|
|
|
(push '("==" . ?≡) prettify-symbols-alist) |
|
|
|
|
|
(push '("/=" . ?≢) prettify-symbols-alist) |
|
|
|
|
|
(push '("!!" . "‼") prettify-symbols-alist) |
|
|
|
|
|
(push '("&&" . ?∧) prettify-symbols-alist) |
|
|
|
|
|
(push '("||" . ?∨) prettify-symbols-alist) |
|
|
|
|
|
(push '("~>" . ?⇝) prettify-symbols-alist) |
|
|
|
|
|
(push '("-<" . ?↢) prettify-symbols-alist) |
|
|
|
|
|
(push '("not" . ?¬) prettify-symbols-alist) |
|
|
|
|
|
(push '("forall" . ?∀) prettify-symbols-alist) |
|
|
|
|
|
(push '("sqrt" . ?√) prettify-symbols-alist) |
|
|
|
|
|
(push '("undefined" . ?⊥) prettify-symbols-alist) |
|
|
|
|
|
(prettify-symbols-mode) |
|
|
|
|
|
) |
|
|
|
|
|
) |
|
|
|
|
|
) |
|
|
|
|
|
) |
|
|
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
*** undo-tree |
|
|
*** undo-tree |
|
|
|
|
|
|
|
|
Make undo more useful, and treelike. |
|
|
Make undo more useful, and treelike. |
|
|
@@ -1096,6 +1139,21 @@ Instead of text might as well get a decent mode hook going here. |
|
|
(use-package nix-mode :ensure t) |
|
|
(use-package nix-mode :ensure t) |
|
|
#+END_SRC |
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
|
|
|
*** docker-mode |
|
|
|
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
|
(use-package dockerfile-mode :defer t) |
|
|
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
|
|
|
*** cscope |
|
|
|
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
|
(use-package xcscope |
|
|
|
|
|
:defer t |
|
|
|
|
|
:init (progn (cscope-setup)) |
|
|
|
|
|
) |
|
|
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
* mode related |
|
|
* mode related |
|
|
*** common defaults |
|
|
*** common defaults |
|
|
|
|
|
|
|
|
@@ -1309,6 +1367,6 @@ Load this up last to allow for local customization if needed and to keep from cu |
|
|
#+END_SRC |
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
* Load any local definitions |
|
|
* Load any local definitions |
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp :tangle no |
|
|
(load-file "~/.emacs.d/local.el") |
|
|
(load-file "~/.emacs.d/local.el") |
|
|
#+END_SRC |
|
|
#+END_SRC |