Skip to content

Latest commit

 

History

History
90 lines (61 loc) · 1.84 KB

Emacs-04.org

File metadata and controls

90 lines (61 loc) · 1.84 KB

Check out the GitHub repo

https://github.com/daviwil/runemacs

Projectile

(use-package projectile
  :diminish projectile-mode
  :config (projectile-mode)
  :bind-keymap
  ("C-c p" . projectile-command-map)
  :init
  (when (file-directory-p "~/Projects/Code")
    (setq projectile-project-search-path '("~/Projects/Code")))
  (setq projectile-switch-project-action #'projectile-dired))

https://github.com/bbatsov/projectile https://docs.projectile.mx/projectile/index.html https://docs.projectile.mx/projectile/projects.html#storing-project-settings https://www.gnu.org/software/emacs/manual/html_node/elisp/Directory-Local-Variables.html

  • Run project C-c p u
  • Run tests: C-c p P
  • Edit dir-locals: C-c p E (reload with hack-dir-local-variables-non-file-buffer)

counsel-projectile

https://github.com/ericdanan/counsel-projectile

(use-package counsel-projectile
 :after projectile
 :config
 (counsel-projectile-mode 1))
  • Advanced project switching: C-c p p
  • Quick searching with counsel-projectile-rg - C-c p s r
    • Results to buffer with C-c C-o

Magit

https://github.com/magit/magit ttps://magit.vc/ https://magit.vc/manual/magit/

(use-package magit
  :commands (magit-status magit-get-current-branch)
  :custom
  (magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1))

(use-package evil-magit
  :after magit)

Operations

Run magit-status in buffer from Git repo, press ? for command panel.

Refresh buffer with g r

  • Diffs
  • Commit log
  • Blame
  • Stashes
  • Branches
  • Rebase
  • Pull/push

Forge

https://github.com/magit/forge https://magit.vc/manual/forge

Important: https://magit.vc/manual/ghub/Getting-Started.html#Getting-Started

(use-package forge)