Baishampayan Ghose <b.gh...@gmail.com> writes: Hi Baishampayan,
>> ,----[ C-h f ansi-color-for-comint-mode-on RET ] >> | ansi-color-for-comint-mode-on is an interactive compiled Lisp function in >> | `ansi-color.el'. >> | >> | (ansi-color-for-comint-mode-on) >> | >> | Set `ansi-color-for-comint-mode' to t. > > Thanks Tassilo, but that turns on ansi color for the shell, Well, for all modes that interact with some process using comint, like shell, term, and some others. It seems sldb-mode is not a comint mode. > and not the sldb buffer with the stacktrace. Is there any way to > enable that globally? Not that I know of. But you could try to run the ansi translation in sldb-mode-hook. --8<---------------cut here---------------start------------->8--- (defun th-ansi-colorize-buffer () (ansi-color-apply-on-region (point-min) (point-max))) (add-hook 'sldb-mode-hook 'th-ansi-colorize-buffer) --8<---------------cut here---------------end--------------->8--- It might be that the hook is run before the stacktrace is actually inserted in the buffer. In that case, you should add the colorizing function into a buffer-local after-change-functions hook like so: --8<---------------cut here---------------start------------->8--- (defun th-ansi-colorize-buffer () (ansi-color-apply-on-region (point-min) (point-max))) (defun th-sldb-mode-init () (add-hook 'after-change-functions 'th-ansi-colorize-buffer t t)) (add-hook 'sldb-mode-hook 'th-sldb-mode-init) --8<---------------cut here---------------end--------------->8--- Bye, Tassilo -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en