|
|
|
|
@ -204,12 +204,27 @@ |
|
|
|
|
(global-set-key (kbd "<S-f13>") 'just-activate-mark) |
|
|
|
|
(global-set-key (kbd "<S-f14>") 'just-activate-mark) |
|
|
|
|
#+END_SRC |
|
|
|
|
** Global bindings |
|
|
|
|
Remove some supremely annoying bindings |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
(global-unset-key (kbd "C-z")) |
|
|
|
|
(global-unset-key (kbd "C-x f")) |
|
|
|
|
(global-unset-key (kbd "<M-f4>")) ; rly? |
|
|
|
|
#+END_SRC |
|
|
|
|
Change {up,down}-list |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
(global-unset-key (kbd "C-M-u")) |
|
|
|
|
(global-unset-key (kbd "C-M-d")) |
|
|
|
|
(global-set-key (kbd "C-M-i") 'down-list) ;; -i stands for /in/ |
|
|
|
|
(global-set-key (kbd "C-M-o") 'up-list) ;; -o stands for /out/ |
|
|
|
|
#+END_SRC |
|
|
|
|
Add some opinionated bindings |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
(global-set-key (kbd "C-M-d") 'kill-sexp) |
|
|
|
|
(global-set-key (kbd "C-M-<backspace>") 'backward-kill-sexp) |
|
|
|
|
#+END_SRC |
|
|
|
|
** Whitespace |
|
|
|
|
Trailing whitespace is evil; get rid of it |
|
|
|
|
*** TODO Have a look at ws-trim.el |
|
|
|
|
It is conf'ble to avoid removing whitespace from lines that were not |
|
|
|
|
modified; sounds like a good idea for git |
|
|
|
|
[ftp://ftp.lysator.liu.se/pub/emacs/ws-trim.el] |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
(setq-default show-trailing-whitespace t) |
|
|
|
|
(add-hook 'before-save-hook 'delete-trailing-whitespace) |
|
|
|
|
@ -221,15 +236,19 @@ |
|
|
|
|
(setq tab-width 4) |
|
|
|
|
(setq indent-tabs-mode nil) |
|
|
|
|
#+END_SRC |
|
|
|
|
*** TODO Have a look at ws-trim.el |
|
|
|
|
It is conf'ble to avoid removing whitespace from lines that were not |
|
|
|
|
modified; sounds like a good idea for git |
|
|
|
|
[ftp://ftp.lysator.liu.se/pub/emacs/ws-trim.el] |
|
|
|
|
|
|
|
|
|
** Show matching parens |
|
|
|
|
Use mic-paren for paren-highlighting |
|
|
|
|
*** TODO find out if there are better options out there |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
; (setq show-paren-mode t) |
|
|
|
|
(require 'mic-paren) |
|
|
|
|
(paren-activate) |
|
|
|
|
#+END_SRC |
|
|
|
|
*** TODO find out if there are better options out there |
|
|
|
|
** Abbrevs |
|
|
|
|
Set up abbrevs |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
@ -285,6 +304,11 @@ |
|
|
|
|
(setq compilation-ask-about-save nil) |
|
|
|
|
#+END_SRC |
|
|
|
|
* Main packages |
|
|
|
|
** Magit |
|
|
|
|
Set main binding |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
(global-set-key (kbd "C-x C-g") 'magit-status) |
|
|
|
|
#+END_SRC |
|
|
|
|
** Outshine |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
(require 'outshine) |
|
|
|
|
@ -323,8 +347,8 @@ |
|
|
|
|
#+END_SRC |
|
|
|
|
** Atomic chrome |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
(require 'atomic-chrome) |
|
|
|
|
(atomic-chrome-start-server) |
|
|
|
|
;;(require 'atomic-chrome) |
|
|
|
|
;;(atomic-chrome-start-server) |
|
|
|
|
#+END_SRC |
|
|
|
|
* Leftovers |
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
|
@ -365,22 +389,6 @@ |
|
|
|
|
|
|
|
|
|
;; (require 'pomodoro) |
|
|
|
|
|
|
|
|
|
(global-unset-key (kbd "C-z")) |
|
|
|
|
(global-unset-key (kbd "C-x f")) |
|
|
|
|
(global-unset-key (kbd "<M-f4>")) ; rly? |
|
|
|
|
|
|
|
|
|
;; Change some global bindings: |
|
|
|
|
(global-unset-key (kbd "C-M-u")) |
|
|
|
|
(global-unset-key (kbd "C-M-d")) |
|
|
|
|
(global-set-key (kbd "C-M-i") 'down-list) ;; -i stands for /in/ |
|
|
|
|
(global-set-key (kbd "C-M-o") 'up-list) ;; -o stands for /out/ |
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-x C-g") 'magit-status) |
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-M-d") 'kill-sexp) |
|
|
|
|
(global-set-key (kbd "C-M-<backspace>") 'backward-kill-sexp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; * smart-tab-mode |
|
|
|
|
(require 'smart-tab) |
|
|
|
|
(global-smart-tab-mode 1) |
|
|
|
|
|