adding direnv
This commit is contained in:
parent
bb8042b712
commit
d4b1faee25
66
README.org
66
README.org
|
@ -27,6 +27,7 @@
|
|||
- [[#help][Help]]
|
||||
- [[#format][Format]]
|
||||
- [[#languages][Languages]]
|
||||
- [[#direnv][direnv]]
|
||||
- [[#file-management][File Management]]
|
||||
- [[#ledger][Ledger]]
|
||||
- [[#mu4e][MU4E]]
|
||||
|
@ -246,7 +247,10 @@ Probably the prettiest and best modeline I've found.
|
|||
(doom-modeline-mode 1)
|
||||
(setq doom-modeline-height 35
|
||||
doom-modeline-bar-width 3
|
||||
all-the-icons-scale-factor 0.9)
|
||||
all-the-icons-scale-factor 0.9
|
||||
doom-modeline-hud nil
|
||||
doom-modeline-buffer-file-name-style 'file-name
|
||||
doom-modeline-buffer-encoding nil)
|
||||
(if (daemonp)
|
||||
(add-hook 'after-make-frame-functions
|
||||
(lambda (frame)
|
||||
|
@ -719,7 +723,8 @@ Part of this config includes some special capture templates for my work as a you
|
|||
"e" 'org-export-dispatch
|
||||
"oa" 'org-agenda-list
|
||||
"gt" 'org-babel-tangle
|
||||
"il" 'org-insert-link)
|
||||
"il" 'org-insert-link
|
||||
"it" 'org-insert-todo-subheading)
|
||||
(chris/leader-keys
|
||||
:states 'visual
|
||||
:keymaps 'override
|
||||
|
@ -861,17 +866,18 @@ We also need to setup some capture templates to use some specific setups with my
|
|||
"#+TITLE: ${title}\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n")
|
||||
:unnarrowed t))
|
||||
org-roam-dailies-capture-templates
|
||||
'(("d" "daily" plain #'org-roam-capture--get-point ""
|
||||
:immediate-finish t
|
||||
'(("d" "daily" plain "%?"
|
||||
:immediate-finish nil
|
||||
:file-name "%<%Y-%m-%d>"
|
||||
:head "#+TITLE: %<%Y-%m-%d>\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* HFL\n* Tasks\n* Family\n** How Do I Love Abbie?"
|
||||
:if-new (file+head "%<%Y-%m-%d>.org"
|
||||
"#+TITLE: %<%Y-%m-%d>\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* HFL\n* Tasks\n* Family\n** How Do I Love Abbie?")
|
||||
:target (file+head "%<%Y-%m-%d>.org"
|
||||
"#+TITLE: %<%Y-%m-%d>\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* HFL\n* Tasks\n* Family\n** How Do I Love Abbie?\n* Bible")
|
||||
:unnarrowed t
|
||||
)
|
||||
("b" "biblical daily" plain #'org-roam-capture--get-point ""
|
||||
:immediate-finish t
|
||||
("b" "biblical daily" plain "%?"
|
||||
:file-name "%<%Y-%m-%d>-bib"
|
||||
:head "#+TITLE: %<%Y-%m-%d> - Biblical\n#+AUTHOR: Chris Cochrun")))
|
||||
:target (file+head "%<%Y-%m-%d>-bib.org" "#+TITLE: %<%Y-%m-%d> - Biblical\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* Notes")
|
||||
:unnarrowed t)))
|
||||
(org-roam-setup)
|
||||
:general
|
||||
(chris/leader-keys
|
||||
|
@ -881,7 +887,7 @@ We also need to setup some capture templates to use some specific setups with my
|
|||
"nr" 'org-roam-buffer-toggle
|
||||
"ni" 'org-roam-node-insert
|
||||
"nc" 'org-roam-capture
|
||||
"njt" 'org-roam-dailies-capture-today
|
||||
"nt" 'org-roam-dailies-goto-today
|
||||
"ng" 'org-roam-graph))
|
||||
|
||||
#+END_SRC
|
||||
|
@ -1781,7 +1787,7 @@ Tempel is another templating system. Also perhaps even more powerful with it's e
|
|||
;; (tempel-global-abbrev-mode)
|
||||
:general
|
||||
(chris/leader-keys
|
||||
"it" 'tempel-insert)
|
||||
"ic" 'tempel-insert)
|
||||
)
|
||||
#+END_SRC
|
||||
|
||||
|
@ -2153,6 +2159,13 @@ Let's also add the android-sdk tools to emacs' path.
|
|||
(add-to-list 'exec-path "/opt/android-sdk/cmdline-tools/latest/bin")
|
||||
#+end_src
|
||||
|
||||
** direnv
|
||||
#+begin_src emacs-lisp
|
||||
(use-package direnv
|
||||
:config
|
||||
(direnv-mode))
|
||||
#+end_src
|
||||
|
||||
** File Management
|
||||
*** Dired
|
||||
I'm making a small function in here to open files in the appropriate program using XDG defaults. This is like opening odt files in Libreoffice or mp4 files in MPV.
|
||||
|
@ -2707,20 +2720,23 @@ Let's add our own eshell prompt. and set the password cache to a significantly h
|
|||
(add-hook 'eshell-mode-hook '(display-line-numbers-mode -1))
|
||||
|
||||
(setq eshell-command-aliases-list
|
||||
'(("q" "exit")
|
||||
("f" "find-file $1")
|
||||
("ff" "find-file $1")
|
||||
("d" "dired $1")
|
||||
("bd" "eshell-up $1")
|
||||
("rg" "rg --color=always $*")
|
||||
("ll" "ls -lah $*")
|
||||
("gg" "magit-status")
|
||||
("clear" "clear-scrollback")
|
||||
("!c" "eshell-previous-input 2")
|
||||
("yay" "paru $1")
|
||||
("yeet" "paru -Rns $1")
|
||||
("nupg" "upgrade-nix")
|
||||
("nupd" "update-nix")))
|
||||
'(("q" "exit")
|
||||
("f" "find-file $1")
|
||||
("ff" "find-file $1")
|
||||
("d" "dired $1")
|
||||
("bd" "eshell-up $1")
|
||||
("rg" "rg --color=always $*")
|
||||
("ll" "ls -lah $*")
|
||||
("gg" "magit-status")
|
||||
("clear" "clear-scrollback")
|
||||
("!c" "eshell-previous-input 2")
|
||||
("yay" "paru $1")
|
||||
("yeet" "paru -Rns $1")
|
||||
("nixs" "nix search nixpkgs")
|
||||
("myip" "curl icanhazip.com")
|
||||
("ytd" "yt-dlp -o ~/Videos/%(title)s.%(ext)s")
|
||||
("nupg" "upgrade-nix")
|
||||
("nupd" "update-nix")))
|
||||
|
||||
:general
|
||||
(chris/leader-keys
|
||||
|
|
62
init.el
62
init.el
|
@ -122,7 +122,10 @@
|
|||
(doom-modeline-mode 1)
|
||||
(setq doom-modeline-height 35
|
||||
doom-modeline-bar-width 3
|
||||
all-the-icons-scale-factor 0.9)
|
||||
all-the-icons-scale-factor 0.9
|
||||
doom-modeline-hud nil
|
||||
doom-modeline-buffer-file-name-style 'file-name
|
||||
doom-modeline-buffer-encoding nil)
|
||||
(if (daemonp)
|
||||
(add-hook 'after-make-frame-functions
|
||||
(lambda (frame)
|
||||
|
@ -512,7 +515,8 @@
|
|||
"e" 'org-export-dispatch
|
||||
"oa" 'org-agenda-list
|
||||
"gt" 'org-babel-tangle
|
||||
"il" 'org-insert-link)
|
||||
"il" 'org-insert-link
|
||||
"it" 'org-insert-todo-subheading)
|
||||
(chris/leader-keys
|
||||
:states 'visual
|
||||
:keymaps 'override
|
||||
|
@ -630,17 +634,18 @@
|
|||
"#+TITLE: ${title}\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n")
|
||||
:unnarrowed t))
|
||||
org-roam-dailies-capture-templates
|
||||
'(("d" "daily" plain #'org-roam-capture--get-point ""
|
||||
:immediate-finish t
|
||||
'(("d" "daily" plain "%?"
|
||||
:immediate-finish nil
|
||||
:file-name "%<%Y-%m-%d>"
|
||||
:head "#+TITLE: %<%Y-%m-%d>\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* HFL\n* Tasks\n* Family\n** How Do I Love Abbie?"
|
||||
:if-new (file+head "%<%Y-%m-%d>.org"
|
||||
"#+TITLE: %<%Y-%m-%d>\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* HFL\n* Tasks\n* Family\n** How Do I Love Abbie?")
|
||||
:target (file+head "%<%Y-%m-%d>.org"
|
||||
"#+TITLE: %<%Y-%m-%d>\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* HFL\n* Tasks\n* Family\n** How Do I Love Abbie?\n* Bible")
|
||||
:unnarrowed t
|
||||
)
|
||||
("b" "biblical daily" plain #'org-roam-capture--get-point ""
|
||||
:immediate-finish t
|
||||
("b" "biblical daily" plain "%?"
|
||||
:file-name "%<%Y-%m-%d>-bib"
|
||||
:head "#+TITLE: %<%Y-%m-%d> - Biblical\n#+AUTHOR: Chris Cochrun")))
|
||||
:target (file+head "%<%Y-%m-%d>-bib.org" "#+TITLE: %<%Y-%m-%d> - Biblical\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* Notes")
|
||||
:unnarrowed t)))
|
||||
(org-roam-setup)
|
||||
:general
|
||||
(chris/leader-keys
|
||||
|
@ -650,7 +655,7 @@
|
|||
"nr" 'org-roam-buffer-toggle
|
||||
"ni" 'org-roam-node-insert
|
||||
"nc" 'org-roam-capture
|
||||
"njt" 'org-roam-dailies-capture-today
|
||||
"nt" 'org-roam-dailies-goto-today
|
||||
"ng" 'org-roam-graph))
|
||||
|
||||
(use-package websocket)
|
||||
|
@ -1264,7 +1269,7 @@ targets."
|
|||
;; (tempel-global-abbrev-mode)
|
||||
:general
|
||||
(chris/leader-keys
|
||||
"it" 'tempel-insert)
|
||||
"ic" 'tempel-insert)
|
||||
)
|
||||
|
||||
(use-package projectile
|
||||
|
@ -1472,6 +1477,10 @@ targets."
|
|||
|
||||
(add-to-list 'exec-path "/opt/android-sdk/cmdline-tools/latest/bin")
|
||||
|
||||
(use-package direnv
|
||||
:config
|
||||
(direnv-mode))
|
||||
|
||||
(use-package dired
|
||||
:ensure nil
|
||||
:straight nil
|
||||
|
@ -1909,20 +1918,23 @@ targets."
|
|||
(add-hook 'eshell-mode-hook '(display-line-numbers-mode -1))
|
||||
|
||||
(setq eshell-command-aliases-list
|
||||
'(("q" "exit")
|
||||
("f" "find-file $1")
|
||||
("ff" "find-file $1")
|
||||
("d" "dired $1")
|
||||
("bd" "eshell-up $1")
|
||||
("rg" "rg --color=always $*")
|
||||
("ll" "ls -lah $*")
|
||||
("gg" "magit-status")
|
||||
("clear" "clear-scrollback")
|
||||
("!c" "eshell-previous-input 2")
|
||||
("yay" "paru $1")
|
||||
("yeet" "paru -Rns $1")
|
||||
("nupg" "upgrade-nix")
|
||||
("nupd" "update-nix")))
|
||||
'(("q" "exit")
|
||||
("f" "find-file $1")
|
||||
("ff" "find-file $1")
|
||||
("d" "dired $1")
|
||||
("bd" "eshell-up $1")
|
||||
("rg" "rg --color=always $*")
|
||||
("ll" "ls -lah $*")
|
||||
("gg" "magit-status")
|
||||
("clear" "clear-scrollback")
|
||||
("!c" "eshell-previous-input 2")
|
||||
("yay" "paru $1")
|
||||
("yeet" "paru -Rns $1")
|
||||
("nixs" "nix search nixpkgs")
|
||||
("myip" "curl icanhazip.com")
|
||||
("ytd" "yt-dlp -o ~/Videos/%(title)s.%(ext)s")
|
||||
("nupg" "upgrade-nix")
|
||||
("nupd" "update-nix")))
|
||||
|
||||
:general
|
||||
(chris/leader-keys
|
||||
|
|
Loading…
Reference in a new issue