X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/733514e5fdbce89f2e2fe3e72c455911d7d5c8e9..c2c256b7c6b49be7c2084ba6028539f3f8640684:/dot/emacs diff --git a/dot/emacs b/dot/emacs index 93e54f8..e269086 100644 --- a/dot/emacs +++ b/dot/emacs @@ -279,6 +279,15 @@ (apply #'set-input-mode (nconc (list (nth 0 im) (nth 1 im) 0) (nthcdr 3 im))))) +;; Some unpleasant terminal hackery. Screen prefixes the current terminal +;; name with `screen.', and Emacs is too dim to split the name at the `.'. +;; Help it out. + +(defun terminal-init-screen.xterm () + (tty-run-terminal-initialization (selected-frame) "screen")) +(defun terminal-init-screen.putty () + (tty-run-terminal-initialization (selected-frame) "screen")) + ;; Don't disable any commands. (mapatoms #'(lambda (sym) (put sym 'disabled nil))) @@ -317,8 +326,12 @@ ido-default-file-method 'selected-window ido-default-buffer-method 'selected-window) (setq ido-enable-flex-matching t + ido-everywhere t ido-confirm-unique-completion t - ido-use-filename-at-point nil) + ido-use-filename-at-point nil + ido-auto-merge-work-directories-length -1) +(setq pcomplete-cycle-completions nil ;Who thought that was a good idea? + eshell-cmpl-cycle-completions nil) (setq dired-deletion-confirmer ;Make deletion easier in dired (symbol-function 'y-or-n-p) dired-listing-switches "-alF" ;Do `ls -F' things in dired windows @@ -326,12 +339,15 @@ (setq read-quoted-char-radix 16) ;C-q HEX-STUFF [RET] (setq case-fold-file-names nil) ;Don't translate file names (grr...) (setq scroll-step 5) ;Don't scroll too much at a time +(setq blink-cursor-blinks 0) ;Keep blinking the cursor (setq-default fill-column mdw-text-width) ;I use rather narrow windows +(setq reb-re-syntax 'string) ;Enough backslashes even with this (setq-default comment-column 40) ;Set a standard comment column (setq-default truncate-partial-width-windows nil truncate-lines t) (setq default-indicate-empty-lines t) (setq view-read-only t) +(setq-default view-exit-action #'kill-buffer) (setq whitespace-style '(trailing empty indentation face lines-tail space-before-tab space-after-tab) whitespace-line-column mdw-text-width)