[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Hyperlatex default emacs key bindings for Debian



Hi,

I'm the maintainer of the Debian hyperlatex package.

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:

======================================================================
--- 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)
+(if (not (featurep 'latex))
+    (add-to-list 'after-load-alist
+                 '("latex" (define-key LaTeX-mode-map
+                             (kbd "C-c c h")
+                             'hyperlatex-format-buffer)))
+  (define-key LaTeX-mode-map
+    (kbd "C-c c h")
+    'hyperlatex-format-buffer))
======================================================================

Thanks!

bye,
  Roland

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: