.emacs configuration question
Hi,
Sometime ago somebody gave me some tips about how to do keybindings in
emacs. They were for latex. Here they are (from my .emacs):
(defvar TeX-command-list
(list
(list "LaTeX" "latex %t"
'TeX-run-LaTeX nil t)
(list "View" "xdvi %d"
'TeX-run-command nil t)
(list "dviPS" "dvips %d -o %f"
'TeX-run-command nil t)
(list "GV" "gv %f"
'TeX-run-command nil t)
)
)
(global-set-key [(control f5)]
(lambda ()
(interactive)
(TeX-command "LaTeX" 'TeX-master-file)))
(global-set-key [(control f9)]
(lambda ()
(interactive)
(TeX-command "View" 'TeX-master-file)))
As it can be seen, the f5 and f9 are global. I would like to have them
only in TeX/LaTeX modes.
Another thing is the compile command. I have binded it to C-f8:
(global-set-key [(control f8)] 'compile)
The problem is that, when I hit C-f8, I am always questioned if I want
to do "make -k", or whatever was the last command entered for compile. I
would like to have this behaviour (without any prompting) for C/C++
mode:
f9 -> "make"
C-f9 -> "make run"
Makeing the right changes in my Makefile, this will let me compile the
files with f9 and run them with C-f9.
TIA,
Ionutz
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: