|
|
@ -157,7 +157,9 @@
|
|
|
|
(add-to-list 'org-structure-template-alist '("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC"))
|
|
|
|
(add-to-list 'org-structure-template-alist '("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC"))
|
|
|
|
|
|
|
|
|
|
|
|
(setq org-src-tab-acts-natively t
|
|
|
|
(setq org-src-tab-acts-natively t
|
|
|
|
org-edit-src-content-indentation 0)
|
|
|
|
org-edit-src-content-indentation 0
|
|
|
|
|
|
|
|
org-src-preserve-indentation nil
|
|
|
|
|
|
|
|
org-agenda-files '("~/todo.org"))
|
|
|
|
|
|
|
|
|
|
|
|
(setq org-html-doctype "html5")
|
|
|
|
(setq org-html-doctype "html5")
|
|
|
|
|
|
|
|
|
|
|
@ -200,12 +202,13 @@
|
|
|
|
(switch-to-buffer (get-buffer-create "*scratch*"))
|
|
|
|
(switch-to-buffer (get-buffer-create "*scratch*"))
|
|
|
|
(lisp-interaction-mode))
|
|
|
|
(lisp-interaction-mode))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(definteractive manx/kill-all ()
|
|
|
|
|
|
|
|
(mapc 'kill-buffer (buffer-list))
|
|
|
|
|
|
|
|
(manx/scratch-buffer))
|
|
|
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-c s b") 'manx/scratch-buffer)
|
|
|
|
(global-set-key (kbd "C-c s b") 'manx/scratch-buffer)
|
|
|
|
(global-set-key (kbd "C-x k") (lambdainteractive () (kill-buffer (current-buffer))))
|
|
|
|
(global-set-key (kbd "C-x k") (lambdainteractive () (kill-buffer (current-buffer))))
|
|
|
|
(global-set-key (kbd "C-M-s-k")
|
|
|
|
(global-set-key (kbd "C-M-s-k") 'manx/kill-all)
|
|
|
|
(lambdainteractive ()
|
|
|
|
|
|
|
|
(mapc 'kill-buffer (buffer-list))
|
|
|
|
|
|
|
|
(manx/scratch-buffer)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(defmacro manx/split-and-follow (direction)
|
|
|
|
(defmacro manx/split-and-follow (direction)
|
|
|
|
`(progn
|
|
|
|
`(progn
|
|
|
@ -218,6 +221,11 @@
|
|
|
|
(global-set-key (kbd "C-x 2")
|
|
|
|
(global-set-key (kbd "C-x 2")
|
|
|
|
(lambdainteractive () (manx/split-and-follow (split-window-horizontally))))
|
|
|
|
(lambdainteractive () (manx/split-and-follow (split-window-horizontally))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(definteractive manx/theme ()
|
|
|
|
|
|
|
|
"Themes don't load properly when using emacsclient"
|
|
|
|
|
|
|
|
(load-theme 'spacemacs-dark)
|
|
|
|
|
|
|
|
(spaceline-compile))
|
|
|
|
|
|
|
|
|
|
|
|
(defun unix-line-ends ()
|
|
|
|
(defun unix-line-ends ()
|
|
|
|
(when (string-match
|
|
|
|
(when (string-match
|
|
|
|
"-\\(?:dos\\|mac\\)$"
|
|
|
|
"-\\(?:dos\\|mac\\)$"
|
|
|
@ -272,7 +280,8 @@
|
|
|
|
(global-prettify-symbols-mode t)
|
|
|
|
(global-prettify-symbols-mode t)
|
|
|
|
|
|
|
|
|
|
|
|
(defmacro manx/prettify (lst)
|
|
|
|
(defmacro manx/prettify (lst)
|
|
|
|
`(add-hook (quote ,(car lst))
|
|
|
|
`(add-hook
|
|
|
|
|
|
|
|
(quote ,(car lst))
|
|
|
|
(lambda ()
|
|
|
|
(lambda ()
|
|
|
|
(dolist (pair (quote ,(cdr lst)))
|
|
|
|
(dolist (pair (quote ,(cdr lst)))
|
|
|
|
(push pair prettify-symbols-alist)))))
|
|
|
|
(push pair prettify-symbols-alist)))))
|
|
|
|