[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
assigning keystroke in mode table/zmacs question
I would like the tab key bound to com-insert-tab in c mode - so I wrote
the following which does not seem to work.
(defmethod (:mode-forms c-mode-mixin) ()
(append (send self :c-mode-forms)
'((set-char-syntax list-open *mode-list-syntax-table* #/[)
(set-char-syntax list-open *mode-list-syntax-table* #/{)
(set-char-syntax list-close *mode-list-syntax-table* #/])
(set-char-syntax list-close *mode-list-syntax-table* #/})
(set-comtab *mode-comtab* '(#\TAB com-tab-insert))
(setq *comment-begin* "//*")
(setq *comment-end* "*//")
(setq *comment-start* "//*"))))
c mode flavor mixes in c-mode-mixin.
So - what am I failing to understand. Thanks
Strip