;;; my-navigation.el --- Configure parts related to navigation -*- lexical-binding: t -*- ;;; Commentary: ;;; Code: (setq help-window-select t) (customize-set-variable 'project-list-file (expand-file-name "var/projects" user-emacs-directory)) (customize-set-variable 'project-switch-commands '((?f "File" project-find-file) (?d "Dired" project-dired) (?b "Buffer" project-switch-to-buffer) (?e "Eshell" project-eshell) (?m "Magit status" magit-project-status) (?r "Search" rg-project))) (customize-set-variable 'bookmark-save-flag 1) (customize-set-variable 'bookmark-file (expand-file-name "var/bookmarks" user-emacs-directory)) (global-set-key (kbd "C-x C-b") 'ibuffer) (global-set-key (kbd "M-g i") 'imenu) (customize-set-variable 'recentf-max-saved-items 500) (customize-set-variable 'recentf-exclude '(".gz" ".xz" ".zip")) (customize-set-variable 'recentf-save-file (expand-file-name "var/recentf" user-emacs-directory)) (add-hook 'after-init-hook 'recentf-mode) (customize-set-variable 'rg-group-result t) (customize-set-variable 'rg-show-columns t) (customize-set-variable 'rg-align-position-numbers t) (customize-set-variable 'rg-align-line-number-field-length 3) (customize-set-variable 'rg-align-column-number-field-length 3) (customize-set-variable 'rg-align-line-column-separator "#") (customize-set-variable 'rg-align-position-content-separator "|") (add-hook 'after-init-hook 'which-key-mode) (provide 'my-navigation) ;;; my-navigation.el ends here