                      (concat (powerline-render lhs)
                              (powerline-fill face2 (powerline-width rhs))
                              (powerline-render rhs)))))))
+(my-powerline-default-theme)
 
 (require 'git-commit)
 

(require 'powerline)
(defun my-powerline-default-theme ()
  (interactive)


(require 'helm)
(require 'helm-regexp)
(require 'helm-imenu)

(defun local-helm-imenu-transformer (candidates)
  (cl-loop for (k . v) in candidates
           for types = (or (helm-imenu--get-prop k)
                           (list "Function" k))
           for bufname = (buffer-name (marker-buffer v))
           for disp1 = (mapconcat
                        (lambda (x)
                          (propertize
                           x 'face (cond ((string= x "Class")
                                          'font-lock-keyword-face)
                                         ((string= x "Variables")
                                          'font-lock-variable-name-face)
                                         ((string= x "Function")
                                          'font-lock-function-name-face)
                                         ((string= x "Types")
                                          'font-lock-type-face))))
                        types helm-imenu-delimiter)
           for disp = (propertize disp1 'help-echo bufname)
           collect
           (cons disp (cons k v))))

(defun global-helm-imenu-transformer (candidates)
  (cl-loop for (k . v) in candidates
           for types = (cons (buffer-name (marker-buffer v))
                             (or (helm-imenu--get-prop k)
                                 (list "Function" k)))
           for bufname = (buffer-name (marker-buffer v))
           for disp1 = (mapconcat
                        (lambda (x)
                          (propertize
                           x 'face (cond ((string= x "Class")
                                          'font-lock-keyword-face)
                                         ((string= x "Variables")
                                          'font-lock-variable-name-face)
                                         ((string= x "Function")
                                          'font-lock-function-name-face)
                                         ((string= x "Types")
                                          'font-lock-type-face))))
                        types helm-imenu-delimiter)
           for disp = (propertize disp1 'help-echo bufname)
           collect
           (cons disp (cons k v))))

(setq helm-source-imenu
      (helm-make-source "[:Imenu:]" 'helm-imenu-source
        :fuzzy-match helm-imenu-fuzzy-match
        :candidate-transformer 'local-helm-imenu-transformer))

(setq helm-source-imenu-all
      (helm-make-source "[:Imenu in all buffers:]" 'helm-imenu-source
        :candidates 'helm-imenu-candidates-in-all-buffers
        :fuzzy-match helm-imenu-fuzzy-match
        :candidate-transformer 'global-helm-imenu-transformer))

(defun chose-helm-imenu-or-helm-imenu-in-all-buffers (arg)
  (interactive "P")
