X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/652ff1add948209b4d55f461b04c5d54d1d8ad7b..5ffa4795873e37c6b39cf83df82470c1a7119fa0:/dot/emacs diff --git a/dot/emacs b/dot/emacs index 5c567fa..2ab16ad 100644 --- a/dot/emacs +++ b/dot/emacs @@ -97,6 +97,9 @@ (require 'paren) (trap (show-paren-mode t)) (or window-system (mdw-emacs-version-p 22) (menu-bar-mode -1)) +(setq x-select-enable-clipboard nil + x-select-enable-primary t + mouse-drag-copy-region t) ;; Multiple cursors. @@ -134,6 +137,11 @@ (and edit (set-process-query-on-exit-flag edit nil))))))) +;; Saving state. + +(or mdw-fast-startup (savehist-mode 1)) +(setq history-length 200) + ;; Control backup behaviour. (setq backup-by-copying nil) @@ -594,6 +602,7 @@ (global-set-key [?\C-c ?t ?r] 'timeclock-reread-log) (global-set-key [?\C-c ?t ?w] 'timeclock-workday-remaining-string) (global-set-key [?\C-c ?t ?s] 'timeclock-status-string) + (global-set-key [?\C-c ?k] 'compile) (global-set-key [?\C-x ?3] 'mdw-split-window-horizontally) (global-set-key [?\M-#] 'calc-dispatch) (global-set-key [?\C-x ?/] 'auto-fill-mode)