|
|
|
@ -87,7 +87,7 @@ Saves config.org if it's open then reloads the file.
|
|
|
|
|
#+END_SRC
|
|
|
|
|
* emacs gui
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
1(tool-bar-mode -1)
|
|
|
|
|
(tool-bar-mode -1)
|
|
|
|
|
(menu-bar-mode -1)
|
|
|
|
|
(scroll-bar-mode -1)
|
|
|
|
|
(line-number-mode 1)
|
|
|
|
@ -98,6 +98,10 @@ Saves config.org if it's open then reloads the file.
|
|
|
|
|
#+END_SRC
|
|
|
|
|
* functions
|
|
|
|
|
** text
|
|
|
|
|
*** forward whitespace
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
(global-set-k'ey (kbd "<M-right>") 'forward-whitespace)
|
|
|
|
|
#+END_SRC
|
|
|
|
|
*** kill whole word
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
(definteractive manx/kill-whole-word ()
|
|
|
|
@ -376,12 +380,10 @@ Saves config.org if it's open then reloads the file.
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
|
|
|
|
|
#+END_SRC
|
|
|
|
|
** Indentation
|
|
|
|
|
** indentation
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
(setq tab-width 2
|
|
|
|
|
(setq-default tab-width 2
|
|
|
|
|
indent-tabs-mode t)
|
|
|
|
|
|
|
|
|
|
(defvaralias 'js-indent-level 'tab-width)
|
|
|
|
|
(defvaralias 'css-indent-offset 'tab-width)
|
|
|
|
|
#+END_SRC
|
|
|
|
|
* auto-minor-mode
|
|
|
|
@ -411,7 +413,7 @@ For example, used with sensitive-mode to not create backups
|
|
|
|
|
(funcall (cdar alist) 1))
|
|
|
|
|
(setq alist (cdr alist))))))
|
|
|
|
|
|
|
|
|
|
(add-hook 'find-file-hook#'enable-minor-mode-based-on-extension)
|
|
|
|
|
(add-hook 'find-file-hook #'enable-minor-mode-based-on-extension)
|
|
|
|
|
#+END_SRC
|
|
|
|
|
* sensitive-minor-mode
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|