 ;; don't create backup files and clutter
 (setq auto-save-default nil)
 
+;; show parentheses when the cursor is on them
+(show-paren-mode t)
 ;(setq-default make-backup-files nil)
 ;; set the cursor type
 (setq-default cursor-type '(bar . 1))

;; comment and uncomment lines and regions
;; https://www.gnu.org/software/emacs/manual/html_node/emacs/Comment-Commands.html
(global-set-key (kbd "C-c /") 'comment-line)

;; packages
(unless (package-installed-p 'diminish)


;; enable extensions to the dired mode
(add-hook 'dired-load-hook
  (function (lambda ()
    (load "dired-x")
    ; can still use e for the alternate functionality
    (define-key dired-mode-map (kbd "RET") 'dired-find-alternate-file)
    (define-key dired-mode-map (kbd "f") 'dired-find-alternate-file)
    (define-key dired-mode-map (kbd "<mouse-2>") 'dired-find-alternate-file)
)))

;; use ibuffer instead of buffermenu
(global-set-key (kbd "C-x C-b") 'ibuffer)
