 (setq shell-pop-window-position "bottom")
 ;; Do not auto cd to working directory.
 (setq shell-pop-autocd-to-working-dir nil)
-
-(defun ar/disable-non-prog-minor-modes ()
-  "Disable non-programming minor modes, likely slowing things down."
-  (centered-cursor-mode -1)
-  (linum-mode -1))
-
-;;  No need for linum under ansi-term, also avoids flickering.
-(add-hook 'term-mode-hook #'ar/disable-non-prog-minor-modes)
-(add-hook 'magit-mode-hook #'ar/disable-non-prog-minor-modes)
 
 (global-set-key [f5] 'shell-pop)
 (use-package shell-pop

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

;; Language-aware editing commands. Useful for imenu-menu.
(semantic-mode 1)

(use-package yasnippet
  :ensure t)

(defvar mouse-wheel-mode nil)
(use-package centered-cursor-mode
  :ensure t)

(defun ar/create-non-existent-directory ()
  (let ((parent-directory (file-name-directory buffer-file-name)))
