Skip to content

Commit

Permalink
Merge branch 'mode-message-toggle'
Browse files Browse the repository at this point in the history
  • Loading branch information
alphapapa committed Sep 24, 2023
2 parents 42b14ed + 8d45eb5 commit 51c0022
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
3 changes: 2 additions & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ As explained in the usage instructions and shown in the example, items are colle

** 1.4-pre

Nothing new yet.
*Additions*
+ Option ~org-super-agenda-show-message~ allows disabling of the message shown when the mode is enabled. (Thanks to [[https://github.com/hpfr][Liam Hupfer]].)

** 1.3

Expand Down
11 changes: 8 additions & 3 deletions org-super-agenda.el
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ origin (e.g. Org QL's link-handling code).")
:group 'org
:link '(url-link "http://github.com/alphapapa/org-super-agenda"))

(defcustom org-super-agenda-show-message t
"Show a message when `org-super-agenda-mode' is toggled."
:type 'boolean)

(defcustom org-super-agenda-groups nil
"List of groups to apply to agenda views.
See readme for information."
Expand Down Expand Up @@ -369,9 +373,10 @@ With prefix argument ARG, turn on if positive, otherwise off."
(add-to-list 'org-agenda-local-vars 'org-super-agenda-groups)
(setq org-agenda-local-vars (remove 'org-super-agenda-groups org-agenda-local-vars)))
;; Display message
(message (if org-super-agenda-mode
"org-super-agenda-mode enabled."
"org-super-agenda-mode disabled."))))
(when org-super-agenda-show-message
(message (if org-super-agenda-mode
"org-super-agenda-mode enabled."
"org-super-agenda-mode disabled.")))))

;;;; Group selectors

Expand Down
29 changes: 16 additions & 13 deletions org-super-agenda.info
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,10 @@ File: README.info, Node: 14-pre, Next: 13, Up: Changelog
7.1 1.4-pre
===========

Nothing new yet.
*Additions*
• Option ‘org-super-agenda-show-message’ allows disabling of the
message shown when the mode is enabled. (Thanks to Liam Hupfer
(https://github.com/hpfr).)


File: README.info, Node: 13, Next: 12, Prev: 14-pre, Up: Changelog
Expand Down Expand Up @@ -822,18 +825,18 @@ Node: Why are some items not displayed even though I used group selectors for th
Node: Why did a group disappear when I moved it to the end of the list?20892
Node: Changelog21473
Node: 14-pre21711
Node: 1321817
Node: 1223380
Node: 11126050
Node: 1126225
Node: 10327809
Node: 10228020
Node: 10128154
Node: 10028492
Node: Development28597
Node: Bugs28999
Node: Tests29693
Node: Credits30030
Node: 1321988
Node: 1223551
Node: 11126221
Node: 1126396
Node: 10327980
Node: 10228191
Node: 10128325
Node: 10028663
Node: Development28768
Node: Bugs29170
Node: Tests29864
Node: Credits30201

End Tag Table

Expand Down

0 comments on commit 51c0022

Please sign in to comment.