|
|
@ -101,7 +101,8 @@ sbcl is in a werid place on Gentoo.
|
|
|
|
(spaceline-spacemacs-theme)
|
|
|
|
(spaceline-spacemacs-theme)
|
|
|
|
:config
|
|
|
|
:config
|
|
|
|
(spaceline-toggle-buffer-size-off)
|
|
|
|
(spaceline-toggle-buffer-size-off)
|
|
|
|
(setq powerline-default-seperator (quote arrow)))
|
|
|
|
;;This isn't set in :custom because it breaks the arrow.
|
|
|
|
|
|
|
|
(setq powerline-default-seperator 'arrow))
|
|
|
|
#+END_SRC
|
|
|
|
#+END_SRC
|
|
|
|
** dashboard
|
|
|
|
** dashboard
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
@ -241,11 +242,8 @@ Also saves config if open.
|
|
|
|
#+END_SRC
|
|
|
|
#+END_SRC
|
|
|
|
* functions
|
|
|
|
* functions
|
|
|
|
** text
|
|
|
|
** text
|
|
|
|
|
|
|
|
*** kill
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(definteractive manx/kill-word ()
|
|
|
|
|
|
|
|
(backward-word)
|
|
|
|
|
|
|
|
(kill-word 1))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(definteractive manx/kill-line()
|
|
|
|
(definteractive manx/kill-line()
|
|
|
|
(move-beginning-of-line nil)
|
|
|
|
(move-beginning-of-line nil)
|
|
|
|
(kill-whole-line))
|
|
|
|
(kill-whole-line))
|
|
|
@ -254,14 +252,17 @@ Also saves config if open.
|
|
|
|
(save-excursion
|
|
|
|
(save-excursion
|
|
|
|
(indent-region (point-min) (point-max) nil)))
|
|
|
|
(indent-region (point-min) (point-max) nil)))
|
|
|
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "<M-right>") 'forward-whitespace)
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-c r b") 'revert-buffer)
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-c k w") 'manx/kill-word)
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-c k l") 'manx/kill-line)
|
|
|
|
(global-set-key (kbd "C-c k l") 'manx/kill-line)
|
|
|
|
(global-set-key (kbd "s-i") 'manx/format-whole-buffer)
|
|
|
|
(global-set-key (kbd "s-i") 'manx/format-whole-buffer)
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-c r b") 'revert-buffer)
|
|
|
|
#+END_SRC
|
|
|
|
#+END_SRC
|
|
|
|
** buffers
|
|
|
|
** buffers
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
|
|
|
(definteractive manx/scratch-buffer ()
|
|
|
|
|
|
|
|
(switch-to-buffer (get-buffer-create "*scratch*"))
|
|
|
|
|
|
|
|
(lisp-interaction-mode))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(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") (lambdainteractive () (mapc 'kill-buffer (buffer-list))))
|
|
|
|
(global-set-key (kbd "C-M-s-k") (lambdainteractive () (mapc 'kill-buffer (buffer-list))))
|
|
|
|
#+END_SRC
|
|
|
|
#+END_SRC
|
|
|
@ -311,17 +312,14 @@ Also saves config if open.
|
|
|
|
** minor things
|
|
|
|
** minor things
|
|
|
|
Things for GUI and basic config, like electric pairs and highlighting
|
|
|
|
Things for GUI and basic config, like electric pairs and highlighting
|
|
|
|
parens.
|
|
|
|
parens.
|
|
|
|
|
|
|
|
*** set
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(line-number-mode 1)
|
|
|
|
(line-number-mode 1)
|
|
|
|
(column-number-mode 1)
|
|
|
|
(column-number-mode 1)
|
|
|
|
(display-battery-mode 1)
|
|
|
|
(display-battery-mode 1)
|
|
|
|
(show-paren-mode 1)
|
|
|
|
(show-paren-mode 1)
|
|
|
|
(electric-pair-mode t)
|
|
|
|
(electric-pair-mode 1)
|
|
|
|
(global-hl-line-mode t)
|
|
|
|
(global-hl-line-mode 1)
|
|
|
|
|
|
|
|
|
|
|
|
(tool-bar-mode -1)
|
|
|
|
|
|
|
|
(menu-bar-mode -1)
|
|
|
|
|
|
|
|
(scroll-bar-mode -1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(defalias 'yes-or-no-p 'y-or-n-p)
|
|
|
|
(defalias 'yes-or-no-p 'y-or-n-p)
|
|
|
|
|
|
|
|
|
|
|
@ -331,7 +329,12 @@ parens.
|
|
|
|
|
|
|
|
|
|
|
|
(setq backup-directory-alist
|
|
|
|
(setq backup-directory-alist
|
|
|
|
`(("." . ,(concat user-emacs-directory "autosaves"))))
|
|
|
|
`(("." . ,(concat user-emacs-directory "autosaves"))))
|
|
|
|
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
*** unset
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
|
|
|
(tool-bar-mode -1)
|
|
|
|
|
|
|
|
(menu-bar-mode -1)
|
|
|
|
|
|
|
|
(scroll-bar-mode -1)
|
|
|
|
(global-unset-key (kbd "C-z")) ;; Fuck unix
|
|
|
|
(global-unset-key (kbd "C-z")) ;; Fuck unix
|
|
|
|
#+END_SRC
|
|
|
|
#+END_SRC
|
|
|
|
** indentation
|
|
|
|
** indentation
|
|
|
|