blob: c0726ac4207397dab4f8a43d7014fff3dd264726 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
;;; my-navigation.el --- Configure parts related to navigation -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
(setq help-window-select t)
(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)
(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" "tmp/" "/ssh:"))
(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
|