 ;;;                current file using Helm.
 ;;; -------------- -------------------------------------------------------
 
+(require 'rtags)
 (require 'helm)
+
+(defcustom rtags-helm-show-variables nil
+  "Whether `rtags-helm-select-taglist' shows variables and parameters"
+  :group 'rtags
+  :type 'boolean)
+
+(defcustom rtags-helm-show-enums nil
+  "Whether `rtags-helm-select-taglist' shows enums"
+  :group 'rtags
+  :type 'boolean)
 
 (defun rtags-helm-jump-to-line (line)
   (goto-line line)

                         (add-to-list 'classes
                                      (cons (propertize text 'face 'font-lock-type-face)
                                            (string-to-number linenum))))
                        ((or (string= type "VarDecl")
                             (string= type "FieldDecl")
                             (string= type "ParmDecl"))
                         (add-to-list 'variables
                                      (cons (rtags-helm-propertize-variable text)
                                            (string-to-number linenum))))
                        ((or (string= type "EnumDecl")
                             (string= type "EnumConstantDecl"))
                         (add-to-list 'enums
                                      (cons text (string-to-number linenum))))
                        ((or (string= type "macro definition")

            ((name . "Functions")
             (candidates . functions)
             (action . rtags-helm-jump-to-line))
            ((name . ,(if rtags-helm-show-variables "Fields and Variables" "Fields"))
             (candidates . variables)
             (action . rtags-helm-jump-to-line))
            ((name . "Enums")
