Further editing configuration

This commit is contained in:
Wojciech Kozlowski 2017-08-27 17:22:00 +01:00
parent 097221e724
commit fd47888e9c
3 changed files with 28 additions and 8 deletions

View File

@ -160,15 +160,9 @@
;; Kill other window (cyclic order).
(global-set-key (kbd "C-x C-q") 'quit-other-window)
;; Toggle whitespace mode.
(global-set-key (kbd "C-c w") 'whitespace-mode)
;; Change active window. More convenient than "C-x o".
(global-set-key (kbd "M-o") 'other-window)
;; Occur. More convenient than "M-s o"
(global-set-key (kbd "M-s M-o") 'occur)
;; --------------------------------------------------------------------------
;; Aliases.
;; --------------------------------------------------------------------------

View File

@ -20,7 +20,9 @@
'(rainbow-mode
rainbow-delimiters
highlight-parentheses
whole-line-or-region)
whole-line-or-region
duplicate-thing
volatile-highlights)
)
@ -28,6 +30,21 @@
(defun init-packages/init-editing ()
;; --------------------------------------------------------------------------
;; Duplicate things.
;; --------------------------------------------------------------------------
(use-package duplicate-thing
:defer t
:bind (("M-c" . duplicate-thing)))
;; --------------------------------------------------------------------------
;; Volatile highlights - highlight changes caused by undo, yank, etc.
;; --------------------------------------------------------------------------
(use-package volatile-highlights)
(volatile-highlights-mode t)
;; --------------------------------------------------------------------------
;; Parentheses highlighting.
;; --------------------------------------------------------------------------
@ -183,4 +200,14 @@
(let ((transient-mark-mode nil))
(yank-advised-indent-function (region-beginning) (region-end)))))
;; --------------------------------------------------------------------------
;; Additional key-bindingds.
;; --------------------------------------------------------------------------
;; Toggle whitespace mode.
(global-set-key (kbd "C-c w") 'whitespace-mode)
;; Occur. More convenient than "M-s o"
(global-set-key (kbd "M-s M-o") 'occur)
)

View File

@ -31,7 +31,6 @@
;; --------------------------------------------------------------------------
(use-package workgroups2
:defer t
:config
;; Don't save. Workgroups are transient to the session.
(setq wg-emacs-exit-save-behavior nil)