branch: externals/valign
commit 5729733d22c5f39b75fd2ea61bd6f0412b85a1b3
Author: Yuan Fu <[email protected]>
Commit: Yuan Fu <[email protected]>
* valign.el: Move user land code down below (re-layout).
---
valign.el | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/valign.el b/valign.el
index 022e0ec..4fb5b89 100644
--- a/valign.el
+++ b/valign.el
@@ -564,20 +564,7 @@ COLUMN-WIDTH-LIST is returned by
`valign--calculate-cell-width'."
(t 'org)))
-;;; Userland
-
-(defcustom valign-fancy-bar nil
- "Non-nil means to render bar as a full-height line.
-You need to restart valign mode for this setting to take effect."
- :type '(choice
- (const :tag "Enable fancy bar" t)
- (const :tag "Disable fancy bar" nil))
- :group 'valign)
-
-(defun valign-table ()
- "Visually align the table at point."
- (interactive)
- (valign-table-maybe t))
+;;; Align
(defvar valign-not-align-after-list '(self-insert-command
org-self-insert-command
@@ -924,6 +911,20 @@ FLAG is the same as in ‘org-flag-region’."
;;; Userland
+(defcustom valign-fancy-bar nil
+ "Non-nil means to render bar as a full-height line.
+You need to restart valign mode for this setting to take effect."
+ :type '(choice
+ (const :tag "Enable fancy bar" t)
+ (const :tag "Disable fancy bar" nil))
+ :group 'valign)
+
+;;;###autoload
+(defun valign-table ()
+ "Visually align the table at point."
+ (interactive)
+ (valign-table-maybe t))
+
;;;###autoload
(define-minor-mode valign-mode
"Visually align Org tables."