[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Behavior of M-q on comments in code blocks
From: |
Sebastien Vauban |
Subject: |
Re: [O] Behavior of M-q on comments in code blocks |
Date: |
Thu, 13 Feb 2014 15:46:59 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) |
Hi Bastien,
Bastien wrote:
> Sebastien Vauban writes:
>
>> Though, I can't say whether the fact it does not work anymore is due to
>> changes in Org or in my Emacs configuration. Any hint?
>
> Works fine here, surely something in your configuration.
Fond the culprit:
--8<---------------cut here---------------start------------->8---
;; automatically fill comments (but not code) in programming modes
(add-hook 'prog-mode-hook
(lambda ()
(auto-fill-mode 1)
(set (make-local-variable 'fill-nobreak-predicate)
(lambda ()
(not (eq (get-text-property (point) 'face)
'font-lock-comment-face))))))
--8<---------------cut here---------------end--------------->8---
Weird.
Best regards,
Seb
--
Sebastien Vauban