On Wed, 2003-08-13 at 16:59, Peter S Galbraith wrote: > > A user complained about the global keymap bindings for hyperlatex > > in emacs. Since Emacs Lisp is not my "native language", please > > acknowledge the following patch:
> Perhaps use `eval-after-load' instead of the conditional. Does the following look reasonable? ====================================================================== --- debian/42hyperlatex.el 2003-05-19 15:25:18.000000000 +0200 +++ debian/42hyperlatex.el.new 2003-08-10 18:14:08.000000000 +0200 @@ -5,4 +5,11 @@ (parse-colon-path (getenv "HYPERLATEX_DIR")))) (autoload 'hyperlatex-format-buffer "hyperlatex/hyperlatex" "Process the current buffer as hyperlatex code, into a Html document." t) -(global-set-key "\C-ch" 'hyperlatex-format-buffer) +(eval-after-load "latex" + (add-to-list 'after-load-alist + '("latex" (define-key LaTeX-mode-map + (kbd "C-c C-c h") + 'hyperlatex-format-buffer))) + (define-key LaTeX-mode-map + (kbd "C-c C-c h") + 'hyperlatex-format-buffer)) ====================================================================== bye, Roland
signature.asc
Description: This is a digitally signed message part