 (setq ns-right-option-modifier 'none)
 ;; (setq inhibit-startup-screen t)
 
-;; Comment line/region function. Bind to C-c C-c
-(defun comment-or-uncomment-region-or-line ()
-  "Comments or uncomments the region or the current line if there's no active region."
-  (interactive)
-  (let (beg end)
-    (if (region-active-p)
-      (setq beg (region-beginning) end (region-end))
-      (setq beg (line-beginning-position) end (line-end-position))
-    )
-    (comment-or-uncomment-region beg end)
-  )
-)
-
 ;; Key bindings
 (global-set-key (kbd "C-c C-c") 'comment-or-uncomment-region-or-line)
 (global-set-key (kbd "C-x C-k") 'kill-this-buffer)

 '(livedown:autostart t)
 '(livedown:open t)
 '(livedown:port 1337)
 '(paradox-github-token t)
 '(sh-indentation 2))
(custom-set-faces
 ;; custom-set-faces was added by Custom.

                 (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
                 )
  :diminish helm-mode
  )

;; Highlight-Characters
(use-package highlight-chars
  :ensure t
  :config (progn (add-hook 'font-lock-mode-hook 'hc-highlight-tabs)
                 (add-hook 'font-lock-mode-hook 'hc-highlight-trailing-whitespace)))

;; JS2-mode
(use-package js2-mode
