 
 ;; My preferred set up
 (setq
+  apropos-do-all t                      ;; More extensive search in apropos
+  delete-by-moving-to-trash t           ;; Move to OS' trash when deleting stuff
   display-time-24hr-format t            ;; Time in 24h format
   doom-modeline-enable-word-count t     ;; Add a word count selection-info modeline segment.
   doom-modeline-major-mode-color-icon t ;; Display color icons for `major-mode'. It respects `all-the-icons-color-icons'.

  :inherit nil
  :background (face-background 'highlight))


;;;;;;;;;;;;;;;;

;; Auto reformat on save
;; (require 'my-functions)
;; (add-hook 'before-save-hook 'reformat)
;; => Disabled, since cumbersome in some cases. Use [f5] shortcut instead :)

;; Automatically updates copyright updates on save
(add-hook 'before-save-hook 'copyright-update)

;; Make the default frame maximized at startup
(add-to-list 'default-frame-alist '(fullscreen . maximized))

(setq
  apropos-do-all t             ;; More extensive search in apropos
  delete-by-moving-to-trash t  ;; Move to OS' trash when deleting stuff
  vc-follow-symlinks t         ;; VC follows the link and visits the real file
  )
(delete-selection-mode 1)     ;; Delete text when typing over selection.
(editorconfig-mode 1)         ;; Use editor config
(ido-mode t)                  ;; Use ido
(save-place-mode 1)           ;; Save point position between sessions

;; Enable back the commands considered confusing to upper/lower case region
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)
(put 'narrow-to-region 'disabled nil)
(put 'narrow-to-page 'disabled nil)

;; Global custom keyboard shortcuts
(global-set-key (kbd "M-g")    'goto-line)

(global-set-key (kbd "C-. p") (lambda () (interactive) (find-file (expand-file-name "my-packages.el" my-elisp-dir))))
(global-set-key (kbd "C-. u") (lambda () (interactive) (find-file (expand-file-name "my-ui.el" my-elisp-dir))))

;; Enable back the commands considered confusing to upper/lower case region
(put 'upcase-region    'disabled nil)
(put 'downcase-region  'disabled nil)
(put 'narrow-to-region 'disabled nil)
(put 'narrow-to-page   'disabled nil)

;; UI tweaks on macOS
;;;;;;;;;;;;;;;;;;;;;
