Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #285 from auto-complete/support-max-width

Add customizable variable 'max-width' same as #202
  • Loading branch information...
commit 648b5c7769b8742e8e5ee5342d648b4d406cb6ee 2 parents 4c2a54d + cb180ef
@syohex syohex authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 auto-complete.el
View
8 auto-complete.el
@@ -303,6 +303,13 @@ a prefix doen't contain any upper case letters."
:type 'integer
:group 'auto-complete)
+(defcustom ac-max-width nil
+ "Maximum width for auto-complete menu to have"
+ :type '(choice (const :tag "No limit" nil)
+ (const :tag "Character Limit" 25)
+ (const :tag "Window Ratio Limit" 0.5))
+ :group 'auto-complete)
+
(defface ac-completion-face
'((t (:foreground "darkgray" :underline t)))
"Face for inline completion"
@@ -797,6 +804,7 @@ You can not use it in source definition like (prefix . `NAME')."
(popup-create point width height
:around t
:face 'ac-candidate-face
+ :max-width ac-max-width
:mouse-face 'ac-candidate-mouse-face
:selection-face 'ac-selection-face
:symbol t
Please sign in to comment.
Something went wrong with that request. Please try again.