[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Emacs - formatting and dating files.
>>>>> "Barrie" == Barrie Bremner <TheEnglishman [at] ecosse.net> writes:
Barrie> "Stephen J. Turnbull" wrote:
> (if t ; change `t' to `nil' to turn this off
OK, do turn this off.
> (progn
> (require 'tcl)
> (define-key tcl-mode-map [(tab)] 'self-insert-command)
> (define-key tcl-mode-map [(shift tab)] 'tcl-indent-command)))
>
> Swapping that so that TAB does a Tcl indent and Shift-TAB inserts a
> literal TAB character is harder. (C-TAB and M-TAB usually have
> commands bound to them already, so I don't want to use them.)
Barrie> OK, I've entered this code into my .emacs file, however on
Barrie> startup Emacs complains:
Barrie> Error in init file: File error: "Cannot open load file",
Barrie> "tcl"
Argc. Argv. You're using "that other Emacs" aren't you.
What do you do to start TCL mode, if anything? Are you actually in
TCL mode when editing that file? (Look in the modeline, second to
last line of the window.)
OK, after disabling my code, restart Emacs. Then type (leave out the
quotes, everything outside of quotes is a single keystroke and the
spaces outside the quotes should not be typed).
ESC : "(boundp 'tcl-mode-map)" RET
Down in the echo area (very bottom of the frame) it should say t or
nil.
Now visit a TCL file and do it again. What does it say this time?
If it says t the first time, then life is easy, just comment out the
(require ...) line by prefixing it with a semicolon. If it says nil
then t, there's hope but it's harder. If it says nil then nil, I
don't know what's going on.
--
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091
_________________ _________________ _________________ _________________
What are those straight lines for? "XEmacs rules."
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.