Subscribe(setq tex-mode-hook
'(lambda ()
(enlarge-window -8)
))
(load "~/.emacs_addons/sticky-repl.el")
(setq special-display-function 'sticky-repl-display)
(setq compilation-window-height 5)
(setq same-window-buffer-names nil)
(setq special-display-buffer-names
'("*Apropos*"
"*Backtrace*"
"*Calculator*"
"*Compile-log*"
"*Help*"
"*Messages*"
"*Occur*"
"*Shell Command Output*"
"*compilation*"
"*grep*"
"*ielm*"
"*inferior-lisp*"
"*scheme*"
"*vc*"
"*vc-diff*"
"*tex-shell*"))
(setq special-display-regexps
'("\\*shell\\(< [0-9]+>\\)?\\*"
"\\*slime-repl .*\\*"
"\\*sldb .*\\*"))
>(setq tex-mode-hookwith the ocasionally important difference that it will be byte-compiled, while the version quoted with
(lambda ()
(enlarge-window -8)
))
' won’t be. If you still want to explicitly quote the lambda expression, use #'(lambda …)which allows byte-compilation.
You are not logged in, either login or create an account to post comments
I don't see any built-in hooks that would make this easy.
Probably the easiest thing to do would be to write an elisp function that calls tex-file and then resizes the buffers, then bind C-c C-f in latex-mode to this new function. If you're not already an elisp hacker, that's probably not a very attractive value for easiest, but there you are.
posted by Zed_Lopez at 12:14 PM on January 25, 2007