mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 15:15:52 +05:30
Added some projectile wrappers
This commit is contained in:
parent
9d2f86c0c2
commit
8ffcd76f26
|
@ -1021,3 +1021,21 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
||||||
(map! :leader
|
(map! :leader
|
||||||
:desc "Open web browser"
|
:desc "Open web browser"
|
||||||
"o w" #'eaf-open-browser-with-history)
|
"o w" #'eaf-open-browser-with-history)
|
||||||
|
|
||||||
|
;;;-- Load emacs direnv;;;--
|
||||||
|
(require 'direnv)
|
||||||
|
(direnv-mode)
|
||||||
|
|
||||||
|
;;;-- projectile wrapper commands ;;;--
|
||||||
|
(defun projectile-goto-project ()
|
||||||
|
(interactive)
|
||||||
|
(projectile-switch-project t)
|
||||||
|
(neotree-dir (projectile-project-root))
|
||||||
|
)
|
||||||
|
|
||||||
|
(map! :leader
|
||||||
|
:desc "Open project"
|
||||||
|
"p p" #'projectile-goto-project)
|
||||||
|
(map! :leader
|
||||||
|
:desc "Projectile commander"
|
||||||
|
"p @" #'projectile-commander)
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
- [[#focus-mode-configuration][Focus Mode Configuration]]
|
- [[#focus-mode-configuration][Focus Mode Configuration]]
|
||||||
- [[#helpful-mode-configuration][Helpful Mode Configuration]]
|
- [[#helpful-mode-configuration][Helpful Mode Configuration]]
|
||||||
- [[#eaf][EAF]]
|
- [[#eaf][EAF]]
|
||||||
|
- [[#direnv][Direnv]]
|
||||||
|
- [[#projectile][Projectile]]
|
||||||
- [[#my-initel][My init.el]]
|
- [[#my-initel][My init.el]]
|
||||||
- [[#my-packagesel][My packages.el]]
|
- [[#my-packagesel][My packages.el]]
|
||||||
- [[#nix-integration][Nix Integration]]
|
- [[#nix-integration][Nix Integration]]
|
||||||
|
@ -1184,6 +1186,28 @@ I don't have this active right now since I'm exploring tab-bar mode instead!
|
||||||
"o w" #'eaf-open-browser-with-history)
|
"o w" #'eaf-open-browser-with-history)
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
** Direnv
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
|
;;;-- Load emacs direnv;;;--
|
||||||
|
(require 'direnv)
|
||||||
|
(direnv-mode)
|
||||||
|
#+END_SRC
|
||||||
|
** Projectile
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
|
;;;-- projectile wrapper commands ;;;--
|
||||||
|
(defun projectile-goto-project ()
|
||||||
|
(interactive)
|
||||||
|
(projectile-switch-project t)
|
||||||
|
(neotree-dir (projectile-project-root))
|
||||||
|
)
|
||||||
|
|
||||||
|
(map! :leader
|
||||||
|
:desc "Open project"
|
||||||
|
"p p" #'projectile-goto-project)
|
||||||
|
(map! :leader
|
||||||
|
:desc "Projectile commander"
|
||||||
|
"p @" #'projectile-commander)
|
||||||
|
#+END_SRC
|
||||||
* My init.el
|
* My init.el
|
||||||
This section is the [[./init.el][init.el]] section, which controls which Doom modules are loaded.
|
This section is the [[./init.el][init.el]] section, which controls which Doom modules are loaded.
|
||||||
|
|
||||||
|
@ -1274,7 +1298,7 @@ This section is the [[./init.el][init.el]] section, which controls which Doom mo
|
||||||
(eval +overlay) ; run code, run (also, repls)
|
(eval +overlay) ; run code, run (also, repls)
|
||||||
;;gist ; interacting with github gists
|
;;gist ; interacting with github gists
|
||||||
lookup ; navigate your code and its documentation
|
lookup ; navigate your code and its documentation
|
||||||
lsp ; M-x vscode
|
(lsp) ; M-x vscode
|
||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
;;make ; run make tasks from Emacs
|
;;make ; run make tasks from Emacs
|
||||||
;;pass ; password manager for nerds
|
;;pass ; password manager for nerds
|
||||||
|
@ -1318,8 +1342,8 @@ This section is the [[./init.el][init.el]] section, which controls which Doom mo
|
||||||
;;hy ; readability of scheme w/ speed of python
|
;;hy ; readability of scheme w/ speed of python
|
||||||
;;idris ; a language you can depend on
|
;;idris ; a language you can depend on
|
||||||
json ; At least it ain't XML
|
json ; At least it ain't XML
|
||||||
;;(java +meghanada) ; the poster child for carpal tunnel syndrome
|
(java +lsp) ; the poster child for carpal tunnel syndrome
|
||||||
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||||
;;julia ; a better, faster MATLAB
|
;;julia ; a better, faster MATLAB
|
||||||
;;kotlin ; a better, slicker Java(Script)
|
;;kotlin ; a better, slicker Java(Script)
|
||||||
latex ; writing papers in Emacs has never been so fun
|
latex ; writing papers in Emacs has never been so fun
|
||||||
|
@ -1390,6 +1414,7 @@ Any git package can be configured for a particular commit or branch:
|
||||||
- =(unpin! pinned-package another-pinned-package)= to get bleeding edge instead of Doom's stability
|
- =(unpin! pinned-package another-pinned-package)= to get bleeding edge instead of Doom's stability
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp :tangle packages.el
|
#+BEGIN_SRC emacs-lisp :tangle packages.el
|
||||||
|
(package! direnv)
|
||||||
(package! org-modern)
|
(package! org-modern)
|
||||||
(package! org-super-agenda)
|
(package! org-super-agenda)
|
||||||
(package! emacsql :pin "c1a4407")
|
(package! emacsql :pin "c1a4407")
|
||||||
|
|
Loading…
Reference in a new issue