   (let ((sort-fold-case t))
     (call-interactively #'sort-lines)))
 ;; Sort lines (ie. package imports or headers).
-(global-set-key (kbd "M-s l") #'ar/sort-lines-ignore-case)
+(global-set-key (kbd "M-s l")
+                #'ar/sort-lines-ignore-case)
 
 (setq css-indent-offset 2)
 

                 (progn
                   (subword-backward arg)
                   (point))))
(global-set-key (kbd "M-DEL") #'ar/backward-delete-subword)
(global-set-key (kbd "<C-backspace>") #'ar/backward-delete-subword)

(use-package helm-dash :ensure t :demand)
(bind-key "C-h y" #'helm-dash-at-point)
(setq helm-dash-browser-func #'browse-url)

(global-set-key (kbd "M-C-s") #'helm-multi-swoop-all)
(global-set-key (kbd "C-c i") #'helm-imenu)
(define-key helm-map (kbd "<tab>") #'helm-execute-persistent-action) ; rebind tab to do persistent action
(define-key helm-map (kbd "C-i") #'helm-execute-persistent-action) ; make TAB works in terminal
(define-key helm-map (kbd "C-z")  #'helm-select-action) ; list actions using C-z
(global-set-key (kbd "M-x") #'helm-M-x)
(global-set-key (kbd "M-y") #'helm-show-kill-ring)
(global-set-key (kbd "C-x b") #'helm-buffers-list)
(global-set-key (kbd "C-h a") #'helm-apropos)
;; Duplicate line.
(global-set-key "\C-x\C-d" "\C-a\C- \C-e\M-w\C-j\C-y")
;; On Mac, this is effectively fn-M-backspace.
(global-set-key (kbd "M-(") #'kill-word)
(global-set-key (kbd "C-q") #'previous-buffer)
(global-set-key (kbd "C-z") #'next-buffer)

(define-key helm-grep-mode-map (kbd "<return>")  #'helm-grep-mode-jump-other-window)
(define-key helm-grep-mode-map (kbd "n")  #'helm-grep-mode-jump-other-window-forward)

;; Do not auto cd to working directory.
(setq shell-pop-autocd-to-working-dir nil)

(global-set-key [f5]
                #'shell-pop)
(use-package shell-pop :ensure t)

(defun ar/comment-dwim ()
