2012-01-06

emacs, insert parens by pair

On Jan 5, 6:11 am, Andrea Crotti 〔andrea.crott…@gmail.com〕 wrote:
│ Every time I try to open a dot file with the global autopair mode my
│ emacs becomes immediately
│ unusable and I have to kill it.

│ The error is:

│ Error in post-command-hook (autopair-global-mode-check-buffers):
│ (wrong-type-argument characterp nil

│ And if the post-command-hook stops working there's not much to do
│ unfortunately.
│ Any idea about how to fix this?

i'd recommend not to use any minor mode for this. Here's my solution:

〈Emacs: Insert Brackets by Pair〉
http://xahlee.org/emacs/emacs_insert_brackets_by_pair.html

Xah

No comments:

Post a Comment