Skip to content
Browse files

Add customizable variable 'max-width' same as #202

  • Loading branch information...
1 parent 4c2a54d commit cb180ef07df3d539563f5d5defa3f082023d04cb @syohex syohex committed Jan 26, 2014
Showing with 8 additions and 0 deletions.
  1. +8 −0 auto-complete.el
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

0 comments on commit cb180ef

Please sign in to comment.
Something went wrong with that request. Please try again.