change inline-docs-position values
authorstardiviner <[email protected]>
Sat, 28 Jan 2017 02:03:27 +0000 (28 10:03 +0800)
committerstardiviner <[email protected]>
Sun, 29 Jan 2017 15:17:50 +0000 (29 23:17 +0800)
inline-docs.el

index 259347f..f11e845 100644 (file)
   "Show inline contextual docs."
   :group 'docs)
 
-(defcustom inline-docs-position 'up
+(defcustom inline-docs-position 'above
   "Specify inline-docs display position, up or down.
 
 Set `inline-docs-position' to `up' to fix issue that `inline-docs' does not show on single line which don't has next line."
   :type '(choice
           :tag "Specify inline-docs display position."
-          (const :tag "up" up)
-          (const :tag "down" down))
+          (const :tag "up" above)
+          (const :tag "down" below))
   :group 'inline-docs)
 
 (defcustom inline-docs-border-symbol ?―
@@ -112,8 +112,8 @@ Set `inline-docs-position' to `up' to fix issue that `inline-docs' does not show
           (inline-docs--clear-overlay)
           ;; decide overlay positions
           (cl-case inline-docs-position
-            ('up (forward-line 0))
-            ('down (forward-line)))
+            ('above (forward-line 0))
+            ('below (forward-line)))
           (setq start-pos (point))
           (end-of-line)
           (setq end-pos (point))