From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: use-package Date: Thu, 05 May 2016 15:56:03 +0000 Message-ID: References: <874magv15u.fsf@mat.ucm.es> <87d1p38ll6.fsf@mat.ucm.es> <87y47pg5da.fsf@russet.org.uk> <87shxwzkzg.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1462463847 17930 80.91.229.3 (5 May 2016 15:57:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 May 2016 15:57:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Stefan Monnier To: Drew Adams , phillip.lord@russet.org.uk Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 05 17:57:09 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ayLeE-00043f-Fo for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2016 17:57:06 +0200 Original-Received: from localhost ([::1]:54199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayLeA-0008CZ-OU for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2016 11:57:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayLds-0007vl-M8 for help-gnu-emacs@gnu.org; Thu, 05 May 2016 11:56:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayLdf-0001kc-UM for help-gnu-emacs@gnu.org; Thu, 05 May 2016 11:56:39 -0400 Original-Received: from mail-ob0-x22d.google.com ([2607:f8b0:4003:c01::22d]:33395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayLde-0001Wj-Kt for help-gnu-emacs@gnu.org; Thu, 05 May 2016 11:56:31 -0400 Original-Received: by mail-ob0-x22d.google.com with SMTP id x1so38273165obt.0 for ; Thu, 05 May 2016 08:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LmaRw/XdMzBUS8It88fGCYrnQufFhBluHECccppq7WU=; b=bq9zPpR7k+gDmXMEPWmkZ3uU2jSJQPE5sUlk9VIF3TxK2w9ZMdvqIH23cVjykndbQn m1mBaoJDhLgMBuIOOGRo7oFzz4F+285nXv5yGdfqB9u3JcsURZLyKgKMkieGakdcxINn PAGdr6gk3hm1KSfBLTAjPKnZ5MmQ+W0mJ8XVmWt+pFR0fWzUz5twv7bRYUtzX1RZs7j7 JOAiIvpk2v9hEE4aOlnySxwtLk1qeUDQ8k4ubLn7Bs/CbekCtmZe4BvryjAZAOgq8Kkc ZMdnCwXM2kq9Ioj9plYn0Vck4YrB+GYd0FzVou6DQgqdX6FwAafEODmvksFFjLE4Kkhi PdKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LmaRw/XdMzBUS8It88fGCYrnQufFhBluHECccppq7WU=; b=QqKgSvUu/omAtVmRNED//O3NYLiWQ9f8RQkD+V882ZlsqumL/i+/dVUZDu9YWiGmoT PIYLsyLQLdyX55mVQ6Ap6orIz8DzKZM7RSnxZKuuMq2hkL/mFY1eHkCnF4Du3/+tFx9i TxgSbyKhBbi3MT0EBbotpM1brGY3Gke/Rd2t1yUrVK1Q2NkJy1GozJrQVQC7JXOkqVm+ +XueWXzTWHRqJKBjDNQpw8vnVB9kb2dsk87dOpKwpfXMbLzxYU1KQB2fNW5zuEGScgd1 sc5+04kX3s4/T92gtwb2H89CTqcclRGFl6oEkX2H+8QJ34XtlxDjyVtbIbkcJ7O1WTCF mzlg== X-Gm-Message-State: AOPr4FUOe0+UjbDfmSZ7nY3+DDV33ey93b5nbE3JXchojJ6fCkfV9jADVABnqO0qRc7HO+ryvRZWhsJWbTvwDA== X-Received: by 10.60.97.40 with SMTP id dx8mr5250322oeb.30.1462463772632; Thu, 05 May 2016 08:56:12 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c01::22d X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:109886 Archived-At: > > > >> For example, diminishing minor modes -- I think we have overloaded t= he > > >> functionality of minor modes; many (company say, or eldoc) you eithe= r > > >> want on or off. Do I really need mode-line space to be taken up > telling > > >> me that company is one? And is the mode-line the only place we can > > >> display this information? > > > > > > There are of course ways (e.g. packages) to reduce the mode-line > > > indications. But I think it might be good if vanilla Emacs provided > > > a simple way for a user to not display particular lighters (mode > > > indications in the mode-line). > > > > I don't think this is the right solution. Asking the user to choose > > which lighters to hide is just passing the buck. > I also have a same opinion as Drew. Hiding minor mode lighters is very subjective. You might find a particular mode lighter as useless but someone else might be wanting that. So I would also leave it up to the users on which lighters they want to hide. Why might a user want to show the lighter for a global minor > mode? Some minor modes you will turn on and off, perhaps > even frequently. For some of those you might well want to > know whether it is on or off. > > This is no different than for a local minor mode, such as > overwrite mode. You might well want to know whether a > particular mode is on. > > It can depend on the mode and on the user. There is no > one-size-fits-all, IMHO. And that is true of global modes > as well as local ones. > +1 A library can of course choose not to have a lighter for some > mode (local or global). But in the end, users too need to be > able to easily adjust things to suit their tastes and needs. > The rich-minority package in GNU Elpa ( https://elpa.gnu.org/packages/rich-minority.html ) is basically this: Allows the user to hide the lighters they want AND also modify them to their liking. I do not like the extra spacing between the lighters and I choose each lighter to be just one character (regular or unicode) (or 2 at max). So I have this ( http://i.imgur.com/bHmMU1N.png ) using rich-minority. (use-package rich-minority :config (progn (setq rm-blacklist '(" WK" ; which-key " hc" ; hardcore mode " AC" ; auto-complete " vl" ; global visual line mode enabled " Wrap" ; shows up if visual-line-mode is enabled for that buffer " Omit" ; omit mode in dired " yas" ; yasnippet " drag" ; drag-stuff-mode " VHl" ; volatile highlights " ctagsU" ; ctags update " Undo-Tree" ; undo tree " wr" ; Wrap Region " SliNav" ; elisp-slime-nav " Fly" ; Flycheck " PgLn" ; page-line-break " ElDoc" ; eldoc " GG" ; ggtags " hs" ; hideshow " hs+" ; " ez-esc" ; easy-escape " ivy" ; ivy " h" ; hungry-delete-mode )) (setq rm-text-properties '(("\\` Ovwrt\\'" 'face 'font-lock-warning-face))) ; default (add-to-list 'rm-text-properties '("\\` Abbrev\\'" 'display "=E2=80=8B@= ")) ; Abbrev (add-to-list 'rm-text-properties '("\\` Ind\\'" 'display "=E2=80=8B*= >")) ; org indent (add-to-list 'rm-text-properties '("\\` Outl\\'" 'display "=E2=80=8B= =C3=B8")) ; outline (add-to-list 'rm-text-properties '("\\` Server\\'" 'display "=E2=80=8B= =CE=A3")) ; Server (add-to-list 'rm-text-properties '("\\` =CE=BC\\'" 'display "=E2= =80=8B=CE=BC")) ; modi-mode (add-to-list 'rm-text-properties '("\\` Wg\\'" 'display "=E2=80=8Bw= ")) ; writegood (add-to-list 'rm-text-properties '("\\` =3D>\\'" 'display "=E2=80= =8Ba")) ; aggressive indent (add-to-list 'rm-text-properties '("\\` Vis\\'" 'display "=E2=80=8BV= ")) ; visible-mode (with-eval-after-load 'setup-symbola (if font-symbola-p (progn (add-to-list 'rm-text-properties '("\\` Tail\\'" 'display "=E2=80=8B=F0=9F=A2=9B")) ; auto revert tail (add-to-list 'rm-text-properties '("\\` Temp\\'" 'display "=E2=80=8B=F0=9D=98=B5")) ; temp (add-to-list 'rm-text-properties '("\\` rk\\'" 'display "=E2=80=8B=E2=96=AF")) ; region bindings (add-to-list 'rm-text-properties '("\\` (\\*)\\'" 'display "=E2=80=8B=F0=9F=92=A1")) ; beacon (add-to-list 'rm-text-properties '("\\` Hi\\'" 'display "=E2=80=8B=F0=9F=9E=B5"))) ; Hi-Lock (progn (add-to-list 'rm-text-properties '("\\` Tail\\'" 'display "=E2=80=8BTail|")) (add-to-list 'rm-text-properties '("\\` Temp\\'" 'display "=E2=80= =8Bt")) (add-to-list 'rm-text-properties '("\\` rk\\'" 'display "=E2=80= =8Br")) (add-to-list 'rm-text-properties '("\\` (\\*)\\'" 'display "=E2= =80=8B*")) (add-to-list 'rm-text-properties '("\\` Hi\\'" 'display "=E2=80=8BH"))))))) --=20 --=20 Kaushal Modi