[Top][All Lists]

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

Re: c-update-modeline format for c-block-comment-flag

From: Andy Moreton
Subject: Re: c-update-modeline format for c-block-comment-flag
Date: Fri, 13 Oct 2017 17:25:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (windows-nt)

On Fri 13 Oct 2017, Alan Mackenzie wrote:

> The lighter for these modes has "always" included a "/" followed by
> status letters, where "always" means for at least 15 years.  The "*" or
> second "/" is a recent innovation to indicate the current default form of
> comments.

Most of those letters are disabled in my usage, so I notice it less.

The mode reported by Dired has changed - that used to be "C" or "C++"
in 25.3, but is now e.g. "C/*" or "C++//".

It would perhaps be more flexible to configure these lighters as minor
modes, e.g. to show the c style I have:

  (define-minor-mode c-show-style-mode
    "Minor mode to display the C indentation style in the mode line."
    :lighter (c-show-style-mode
              (" " (:propertize c-indentation-style face italic))))

  (defun ajm:c-mode-common-init ()
    (c-show-style-mode 1))
  (add-hook 'c-mode-common-hook 'ajm:c-mode-common-init)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]