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

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

[elpa] externals/valign 8cfe0ca 039/198: * valign.el (valign-separator-r


From: Stefan Monnier
Subject: [elpa] externals/valign 8cfe0ca 039/198: * valign.el (valign-separator-row-style): Add choice definition.
Date: Tue, 1 Dec 2020 18:19:12 -0500 (EST)

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

    * valign.el (valign-separator-row-style): Add choice definition.
---
 valign.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/valign.el b/valign.el
index 9d0faeb..d03c6ec 100644
--- a/valign.el
+++ b/valign.el
@@ -351,10 +351,15 @@ the position for the right bar (“|”)."
 
 (defcustom valign-separator-row-style 'multi-column
   "The style of the separator row of a table.
-Valign can render it as “|          |”
+Valign can render it as “|-----------|”
 or as “|-----|-----|”.  Set this option to 'single-column
 for the former, and 'multi-column for the latter."
-  :type 'symbol
+  ;; Restart valign-mode if on.
+  :set (lambda (var val) (set-default var val)
+         (when valign-mode (valign-mode -1) (valign-mode)))
+  :type '(choice
+          (const :tag "Multiple columns" 'multi-column)
+          (const :tag "A single column" 'single-column))
   :group 'valign)
 
 (defun valign-table ()



reply via email to

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