###
### Bash startup things
-## Only do any of this if we haven't done it before. Otherwise we
-## can have loops and lots of wasted time.
-if [ -z "$__mdw_profile" ]; then
+## The `.bashrc' hook will run us if it thinks we haven't been run before.
+## We should therefore let it know.
export __mdw_profile=done
###--------------------------------------------------------------------------
## If there's a local hook then run it.
[ -f "$HOME/.profile-local" ] && . "$HOME/.profile-local"
-## End of the `__mdw_profile' guard.
-fi
-
## If we haven't run the `.bashrc' yet, and this shell is interactive, then
## run it now.
[ -z "$__mdw_bashrc" ] && [ -t 0 ] && \
message-yank-prefix "> "
message-yank-cited-prefix "> "
message-send-mail-function 'message-send-mail-with-sendmail
+ message-sendmail-envelope-from 'header
message-indent-citation-function '(message-indent-citation
mdw-trim-spaces-after-citing))
(define-key outline-mode-prefix-map [?\C-r] 'reveal-mode)
(define-key outline-mode-prefix-map [?\C--] 'mdw-outline-collapse-all)))
+(setq imenu-auto-rescan t
+ imenu-auto-rescan-maxout (* 128 1024)
+ imenu-max-items 60)
+
(setq cltl2-root-url (mdw-config 'cltl-url))
(setq common-lisp-hyperspec-root (mdw-config 'hyperspec-url))
'mouse-drag-vertical-line)
(global-set-key [vertical-scroll-bar C-mouse-1]
#'(lambda () (interactive)))
+ (global-set-key [M-S-mouse-3] 'imenu)
(global-set-key [XF86WakeUp] "")
(and (not mdw-fast-startup) (fboundp 'hippie-expand)
(global-set-key [?\M-/] 'hippie-expand)))
'(("irc.ssdis.loc" "#devel" "#jukebox" "#nextgen")
("cam.irc.devel.ncipher.com"
"#devel" "#jukebox" "#nextgen" "#sec-team")
- ("chiark.greenend.org.uk" "#chiark")))
+ ("chiark.greenend.org.uk" "#chiark")
+ ("irc.distorted.org.uk" "#distorted" "#jukebox")))
(defvar mdw-erc-auto-greet-bots-alist
`(("irc.ssdis.loc" "fastness"
("cam.irc.devel.ncipher.com" "fastness"
,(format "identpass mwooding %s" mdw-fastness-password))
("chiark.greenend.org.uk" "blight"
- ,(format "identpass mdw %s" mdw-blight-password)))
+ ,(format "identpass mdw %s" mdw-blight-password))
+ ("tunnel.chiark.greenend.org.uk" "blight"
+ ,(format "identpass mdw %s" mdw-blight-password))
+ ("irc.distorted.org.uk" "blight"
+ ,(format "identpass mdw %s" mdw-distorted-password)))
"*Alist of (SERVER-REGEXP BOT-NICK MESSAGE-FORM).
Evaluate MESSAGE-FORM and sent to BOT-NICK when connected to a server which
matches SERVER-REGEXP.")
(message (caddr l)))
(erc-server-send (concat "PRIVMSG " bot " :" message))))))
(add-hook 'erc-after-connect 'mdw-erc-auto-greet-bots)
+
+(defun erc-cmd-GREET ()
+ "Send greeting messages, according to `mdw-erc-auto-greet-bots-alist'."
+ (mdw-erc-auto-greet-bots erc-session-server (erc-current-nick)))
set key 127 \8
telnet guvnor.distorted.org.uk
}
+def JUMPTS {
+ local pass
+ set host /network-type:pty ssh -enone -t \%1
+ while true {
+ input 15 \fpattern({{{password:,exit}}})
+ if fail end 1 failed to connect
+ if equal \v(inmatch) exit break
+ if equal \v(inmatch) password: {
+ if ! def pass askq pass {password: }
+ output \m(pass)\13
+ }
+ }
+}
+def FENDERCON {
+ set input echo off
+ jumpts mdw@ts-tfm8.jump.net.uk
+ output 1\13
+ set control prefixed 30
+ connect
+}
;; Local configuration.
if exist \m(_dot)config take \m(_dot)config
(((class color) (type x)) :background "RoyalBlue4")
(t :underline t))
+(mdw-define-face magit-diff-add
+ (t :foreground "green"))
+(mdw-define-face magit-diff-del
+ (t :foreground "red"))
+(mdw-define-face magit-diff-file-header
+ (t :weight bold))
+(mdw-define-face magit-diff-hunk-header
+ (t :foreground "SkyBlue1"))
+
(mdw-define-face erc-input-face
(t :foreground "red"))