(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.
(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)
(lambda ()
(let ((group gnus-newsgroup-name))
(and (string-match "^nn\\(imap\\|folder\\)\\+" group)
- (not (string-match ":\\(crap\\|spam\\|lists\\)\\." group)))))
+ (not (string-match ":\\(crap\\|spam\\|lists\\|corpus\\)\\."
+ group)))))
bbdb-user-mail-names
(concat "^"
"\\(" "\\(mdw\\|markw\\|root\\|postmaster\\)"
(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 ?m ?m] 'magit-status)
+ (global-set-key [?\C-c ?m ?d] 'magit-dispatch-popup)
+ (global-set-key [?\C-c ?m ?w] 'magit-wip-log)
+ (global-set-key [?\C-c ?m ?r] 'magit-list-repositories)
+ (global-set-key [?\C-c ?p ?p] 'mdw-mpc-play-or-pause)
+ (global-set-key [?\C-c ?p ?s] 'mpc-stop)
+ (global-set-key [?\C-c ?p ?<] 'mpc-prev)
+ (global-set-key [?\C-c ?p ?>] 'mpc-next)
+ (global-set-key [?\C-c ?p ??] 'mdw-mpc-now-playing)
+ (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)
lisp-mode-hook lisp-interaction-mode-hook makefile-mode-hook
inferior-lisp-mode-hook slime-repl-mode-hook
sml-mode-hook haskell-mode-hook erlang-mode-hook
- smalltalk-mode-hook rexx-mode-hook
+ smalltalk-mode-hook rexx-mode-hook lua-mode-hook
arm-assembler-mode-hook))
(global-font-lock-mode t)
(add-hook 'go-mode-hook 'mdw-fontify-go t)
(add-hook 'rust-mode-hook 'mdw-fontify-rust t)
+ (add-hook 'lua-mode-hook 'mdw-fontify-lua t)
(add-hook 'icon-mode-hook 'mdw-fontify-icon t)
(add-hook 'apcalc-mode-hook 'mdw-misc-mode-config t)
(progn
(setq-default py-indent-offset 2
python-indent 2
+ python-indent-offset 2
py-python-command-args
`("-i" "-colors" ,(if mdw-black-background
"Linux" "LightBG")))