|
|
|
@ -96,11 +96,12 @@ sbcl is in a werid place on Gentoo.
|
|
|
|
|
** spaceline
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
(use-package spaceline
|
|
|
|
|
:custom (powerline-default-seperator (quote arrow))
|
|
|
|
|
:init
|
|
|
|
|
(require 'spaceline-config)
|
|
|
|
|
(spaceline-spacemacs-theme)
|
|
|
|
|
:config (spaceline-toggle-buffer-size-off))
|
|
|
|
|
:config
|
|
|
|
|
(spaceline-toggle-buffer-size-off)
|
|
|
|
|
(setq powerline-default-seperator (quote arrow)))
|
|
|
|
|
#+END_SRC
|
|
|
|
|
** dashboard
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
@ -204,6 +205,9 @@ Also saves config if open.
|
|
|
|
|
(eval-after-load "org-mode" (local-set-key (kbd "s-i") nil))
|
|
|
|
|
|
|
|
|
|
(add-to-list 'org-structure-template-alist '("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC"))
|
|
|
|
|
|
|
|
|
|
(setq org-src-tab-acts-natively t
|
|
|
|
|
org-edit-src-content-indentation 0)
|
|
|
|
|
#+END_SRC
|
|
|
|
|
** html export
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
@ -220,7 +224,7 @@ Also saves config if open.
|
|
|
|
|
** Links
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
(definteractive manx/delete-org-link ()
|
|
|
|
|
(if (org-in-regexp org-bracket-link-regexp 1)
|
|
|
|
|
(when (org-in-regexp org-bracket-link-regexp 1)
|
|
|
|
|
(apply 'delete-region (list (match-beginning 0) (match-end 0)))))
|
|
|
|
|
|
|
|
|
|
(add-hook 'org-mode-hook (local-keybind "C-c o l" manx/delete-org-link))
|
|
|
|
@ -288,9 +292,10 @@ Also saves config if open.
|
|
|
|
|
** unix line endings
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
(defun unix-line-ends ()
|
|
|
|
|
(let ((coding-str (symbol-name buffer-file-coding-system)))
|
|
|
|
|
(when (string-match "-\\(?:dos\\|mac\\)$" coding-str)
|
|
|
|
|
(set-buffer-file-coding-system 'unix))))
|
|
|
|
|
(when (string-match
|
|
|
|
|
"-\\(?:dos\\|mac\\)$"
|
|
|
|
|
(symbol-name buffer-file-coding-system))
|
|
|
|
|
(set-buffer-file-coding-system 'unix)))
|
|
|
|
|
|
|
|
|
|
(add-hook 'find-file-hooks 'unix-line-ends)
|
|
|
|
|
#+END_SRC
|
|
|
|
@ -330,10 +335,13 @@ parens.
|
|
|
|
|
(global-unset-key (kbd "C-z")) ;; Fuck unix
|
|
|
|
|
#+END_SRC
|
|
|
|
|
** indentation
|
|
|
|
|
tabs > spaces.
|
|
|
|
|
tabs > spaces. Except in Lisp.
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
(setq-default tab-width 2
|
|
|
|
|
indent-tabs-mode t)
|
|
|
|
|
|
|
|
|
|
(add-hook 'lisp-mode-hook (lambda () (setq indent-tabs-mode nil)))
|
|
|
|
|
(add-hook 'emacs-lisp-mode-hook (lambda () (setq indent-tabs-mode nil)))
|
|
|
|
|
(defvaralias 'css-indent-offset 'tab-width)
|
|
|
|
|
(defvaralias 'js-indent-level 'tab-width)
|
|
|
|
|
#+END_SRC
|
|
|
|
|