   (flyspell-prog-mode)
   (whitespace-mode)
   (rainbow-delimiters-mode)
+  (linum-mode)
+  (centered-cursor-mode)
+  ;; Language-aware editing commands. Useful for imenu-menu.
+  (semantic-mode 1)
   (yas-minor-mode))
 
 (defun ar/markdown-mode-hook-function ()

  "Write the desktop save file to ~/.emacs.d."
  (desktop-save (expand-file-name "~/.emacs.d/")))

(run-with-idle-timer 300 t 'ar/desktop-save)

(defun ar/load-all-files (pattern)
  "Load all files found by PATTERN, ie. (ar/load-all-files '~/*.el')."

(setq recentf-max-saved-items 200
      recentf-max-menu-items 15)
(recentf-mode)

(use-package yasnippet
  :ensure t)
