X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/27cb42153ecf68b5c9ab6cb197bec678fca725b0..308b0b573ef7a78f70eb7d5ddb2c72f6860ea2fe:/emacs diff --git a/emacs b/emacs index 3bbf979..e71b23b 100644 --- a/emacs +++ b/emacs @@ -41,7 +41,7 @@ (maybe-autoload 'git-status "git" nil t) (and (library-exists-p "vc-git") (not (memq 'GIT vc-handled-backends)) - (setq vc-handled-backends (append vc-handled-backends (list 'GIT)))) + (setq vc-handled-backends (cons 'GIT vc-handled-backends))) (and (library-exists-p "quilt") (load "quilt")) @@ -145,9 +145,8 @@ '("-print0 | xargs -0r ls -ld" . "ld")) (setq Info-fontify-maximum-menu-size 60000) (setq ispell-dictionary "british" - flyspell-default-dictionary "british") -(setq browse-url-browser-function 'browse-url-mozilla - browse-url-mozilla-program "firefox") + flyspell-default-dictionary "british" + ispell-silently-savep t) (trap (require 'uniquify) (setq uniquify-buffer-name-style 'post-forward-angle-brackets) @@ -164,13 +163,18 @@ ;;;----- W3 and URL fetching stuff ------------------------------------------ -(let ((proxy (mdw-config 'proxy))) +(let ((proxy (mdw-config 'http-proxy))) (setq url-proxy-services `(("http" . ,proxy) ("ftp" . ,proxy) ("gopher" . ,proxy)))) (setq url-cookie-untrusted-urls '(".")) +(setq browse-url-browser-function (mdw-good-url-browser) + browse-url-mozilla-program "firefox") + +(setq w3m-default-display-inline-images t) + (setq w3-do-incremental-display t w3-use-menus '(file edit view go bookmark options buffers style search emacs nil help) @@ -369,6 +373,26 @@ (global-font-lock-mode t) (defalias 'perl-mode 'cperl-mode) +;;;----- SGML hacking ------------------------------------------------------- + +(defun mdw-sgml-mode () + (interactive) + (sgml-mode) + (mdw-standard-fill-prefix "") + (make-variable-buffer-local 'sgml-delimiters) + (setq sgml-delimiters + '("AND" "&" "COM" "--" "CRO" "&#" "DSC" "]" "DSO" "[" "DTGC" "]" + "DTGO" "[" "ERO" "&" "ETAGO" ":e" "GRPC" ")" "GRPO" "(" "LIT" "\"" + "LITA" "'" "MDC" ">" "MDO" "" "PIO" "" + "XML-ECOM" "-->" "XML-PIC" "?>" "XML-SCOM" "