   :init
   (setq beacon-blink-when-window-scrolls nil)
   :config
-  (beacon-mode 1)
-  :diminish beacon-mode)
+  (beacon-mode 1))
 
 (use-package adaptive-wrap
   :config


;; font lock for newer c++ versions
(use-package modern-cpp-font-lock
  :diminish modern-c++-font-lock-mode
  :config
  :init
  (me:add-hook-with-delay 'c++-mode-hook 10 #'modern-c++-font-lock-mode))

  (fset 'yes-or-no-p 'y-or-n-p)                               ; change stupid default y/n? y
  (make-directory me:emacs-backup-directory t)                ; make sure backup dir exists
  (electric-indent-mode +1)                                   ; turn on electric mode globally (electric)
  (delete-selection-mode t)                                   ; pastes delete selection
  (run-at-time "1 hour" 3600 #'clean-buffer-list))            ; clear out old buffers every hour (midnight)

;; Reset all buffer's mode line to the default one
(defun me:reset-mode-lines ()
  (mapc (lambda (buffer)
          (if (or (buffer-file-name buffer)
                  (not (equal (substring (buffer-name buffer) 0 1) " ")))
              (with-current-buffer buffer
                (kill-local-variable 'mode-line-format)
                (force-mode-line-update t))))
      (buffer-list)))

;; Run programming mode hooks
;; This is used for modes which should trigger programming mode hooks
