X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/a28427d1290aad4862a51aeef6aa131df06d337c..a2cb2ff4217f955f1cfbc836927f8a9f8f57b9eb:/el/dot-emacs.el diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 6a6112d..bc512b4 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -55,8 +55,7 @@ This may be at the expense of cool features.") ;;; Some general utilities. (eval-when-compile - (unless (fboundp 'make-regexp) - (load "make-regexp")) + (unless (fboundp 'make-regexp) (load "make-regexp")) (require 'cl)) (defmacro mdw-regexps (&rest list) @@ -3138,6 +3137,7 @@ name, as a symbol." (setq-default cperl-indent-level 2 cperl-continued-statement-offset 2 + cperl-indent-region-fix-constructs nil cperl-continued-brace-offset 0 cperl-brace-offset -2 cperl-brace-imaginary-offset 0 @@ -4229,7 +4229,7 @@ strip numbers instead." ;;;-------------------------------------------------------------------------- ;;; HTML, CSS, and other web foolishness. -(setq-default css-indent-offset 2) +(setq-default css-indent-offset 8) ;;;-------------------------------------------------------------------------- ;;; SGML hacking. @@ -5099,6 +5099,15 @@ there is sadness." (set-window-dedicated-p (or window (selected-window)) nil)) ;;;-------------------------------------------------------------------------- +;;; SQL stuff. + +(setq sql-postgres-options '("-n" "-P" "pager=off") + sql-postgres-login-params + '((user :default "mdw") + (database :default "mdw") + (server :default "db.distorted.org.uk"))) + +;;;-------------------------------------------------------------------------- ;;; Man pages. ;; Turn off `noip' when running `man': it interferes with `man-db''s own