Permalink
Browse files

Adding custom variable 'ac-max-width' same as #202

And submodule of popup-el is updated for test.
  • Loading branch information...
1 parent 9205ef5 commit 23e661acd7fb740dfea3255be8102ca302844254 @syohex syohex committed Jan 26, 2014
Showing with 9 additions and 1 deletion.
  1. +8 −0 auto-complete.el
  2. +1 −1 lib/popup
View
@@ -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 23e661a

Please sign in to comment.