emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/valign c7bf583 064/198: Support org-agenda-mode


From: Stefan Monnier
Subject: [elpa] externals/valign c7bf583 064/198: Support org-agenda-mode
Date: Tue, 1 Dec 2020 18:19:17 -0500 (EST)

branch: externals/valign
commit c7bf583729832e143454cea0e1955789b89e3bb7
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    Support org-agenda-mode
    
    * valign.el (valign--cell-alignment, valign--align-separator-row):
    Add org-agenda-mode.
---
 valign.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/valign.el b/valign.el
index 7e69bfa..48afab9 100644
--- a/valign.el
+++ b/valign.el
@@ -47,7 +47,7 @@
   "Valign expects one space between the cell’s content and either the left bar 
or the right bar, but this cell seems to violate that assumption")
 
 (cl-defmethod valign--cell-alignment
-  ((type (derived-mode org-mode)) hint)
+  ((type (derived-mode org-mode org-agenda-mode)) hint)
   "Return how is current cell aligned.
 Return 'left if aligned left, 'right if aligned right.
 Assumes point is after the left bar (“|”).
@@ -448,7 +448,8 @@ Assumes point is on the right bar or plus sign."
     (overlay-put ov 'valign t)))
 
 (cl-defmethod valign--align-separator-row
-  ((type (derived-mode org-mode)) (style (eql multi-column)) pos-list)
+  ((type (derived-mode org-mode org-agenda-mode))
+   (style (eql multi-column)) pos-list)
   "Align the separator row in multi column style.
 TYPE must be 'org-mode, STYLE is 'multi-column.
 POS-LIST is a list of positions for each column’s right bar."



reply via email to

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