Compare commits
2 Commits
94b75bf2b2
...
833352540f
| Author | SHA1 | Date | |
|---|---|---|---|
| 833352540f | |||
| d0e1dcfa54 |
52
init.el
52
init.el
@@ -87,17 +87,18 @@
|
|||||||
|
|
||||||
;;search across entire projects
|
;;search across entire projects
|
||||||
(use-package projectile
|
(use-package projectile
|
||||||
:ensure t
|
:diminish projectile-mode
|
||||||
|
:config (projectile-mode)
|
||||||
|
:bind-keymap
|
||||||
|
("C-c p" . projectile-command-map)
|
||||||
:init
|
:init
|
||||||
(projectile-mode +1)
|
(when (file-directory-p "~/src")
|
||||||
:bind (:map projectile-mode-map
|
(setq projectile-project-search-path '("~/src")))
|
||||||
("C-c p" . projectile-command-map))
|
(setq projectile-switch-project-action #'projectile-dired))
|
||||||
:config
|
|
||||||
(setq projectile-project-search-path '("~/src/"))) ;;C-c p p will search here for projects if i wanna jump between things
|
|
||||||
|
|
||||||
(use-package consult-projectile
|
(use-package consult-projectile
|
||||||
:ensure t
|
:ensure t
|
||||||
:bind (("C-c p h" . consult-projectile)))
|
:bind (("C-c h" . consult-projectile)))
|
||||||
|
|
||||||
;;icons are required for modeline
|
;;icons are required for modeline
|
||||||
(use-package all-the-icons
|
(use-package all-the-icons
|
||||||
@@ -119,3 +120,40 @@
|
|||||||
:diminish which-key-mode
|
:diminish which-key-mode
|
||||||
:config
|
:config
|
||||||
(setq which-key-idle-delay 1))
|
(setq which-key-idle-delay 1))
|
||||||
|
|
||||||
|
(use-package magit
|
||||||
|
:commands (magit-status magit-get-current-branch)
|
||||||
|
:bind (("C-x g" . magit-status)
|
||||||
|
("C-x M-g" . magit-dispatch)
|
||||||
|
("C-c M-g" . magit-file-dispatch))
|
||||||
|
:custom
|
||||||
|
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)
|
||||||
|
;; Show refined diffs for current hunk only (better performance)
|
||||||
|
(magit-diff-refine-hunk t)
|
||||||
|
;; Don't automatically revert file-visiting buffers
|
||||||
|
(magit-auto-revert-mode nil)
|
||||||
|
;; Use default terminal for SSH (if relevant)
|
||||||
|
(magit-process-find-password-functions '(magit-process-password-auth-source)))
|
||||||
|
|
||||||
|
(defun rh/org-mode-setup ()
|
||||||
|
(org-indent-mode)
|
||||||
|
(variable-pitch-mode 1)
|
||||||
|
(auto-fill-mode 0)
|
||||||
|
(visual-line-mode 1))
|
||||||
|
|
||||||
|
(use-package org
|
||||||
|
:hook (org-mode . rh/org-mode-setup)
|
||||||
|
:config
|
||||||
|
(setq org-ellipsis " ▾"))
|
||||||
|
(custom-set-variables
|
||||||
|
;; custom-set-variables was added by Custom.
|
||||||
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
;; Your init file should contain only one such instance.
|
||||||
|
;; If there is more than one, they won't work right.
|
||||||
|
'(package-selected-packages nil))
|
||||||
|
(custom-set-faces
|
||||||
|
;; custom-set-faces was added by Custom.
|
||||||
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
;; Your init file should contain only one such instance.
|
||||||
|
;; If there is more than one, they won't work right.
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user