Add python to org-babel, add winner binds

This commit is contained in:
Evie Litherland-Smith 2023-11-27 15:19:26 +00:00
parent 5f65ab02ac
commit d3d915a1a0
3 changed files with 21 additions and 0 deletions

View file

@ -78,6 +78,7 @@
path = pkgs.path; path = pkgs.path;
}; };
}; };
nixPath = [ "nixpkgs=${nixpkgs}" ];
gc = { gc = {
automatic = true; automatic = true;
options = "--delete-older-than 7d"; options = "--delete-older-than 7d";

View file

@ -165,6 +165,10 @@
(keymap-global-set "C-c i n" #'nerd-icons-insert) (keymap-global-set "C-c i n" #'nerd-icons-insert)
(use-package winner (use-package winner
:ensure t
:demand
:bind (("C-c w u" . winner-under)
("C-c w r" . winner-redo))
:config :config
(winner-mode)) (winner-mode))
@ -279,6 +283,12 @@
;; Visually indent org-mode files to a given header level ;; Visually indent org-mode files to a given header level
(add-hook 'org-mode-hook #'org-indent-mode) (add-hook 'org-mode-hook #'org-indent-mode)
(use-package org
:ensure t
:custom
(org-babel-load-languages '((emacs-lisp . t)
(python . t))))
(keymap-global-set "C-c o e" #'org-edit-src-code) (keymap-global-set "C-c o e" #'org-edit-src-code)
(keymap-global-set "C-c o a" #'org-agenda) (keymap-global-set "C-c o a" #'org-agenda)
(keymap-global-set "C-c o n" #'org-capture) (keymap-global-set "C-c o n" #'org-capture)

View file

@ -203,6 +203,10 @@
*** winner *** winner
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package winner (use-package winner
:ensure t
:demand
:bind (("C-c w u" . winner-under)
("C-c w r" . winner-redo))
:config :config
(winner-mode)) (winner-mode))
#+end_src #+end_src
@ -333,6 +337,12 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
;; Visually indent org-mode files to a given header level ;; Visually indent org-mode files to a given header level
(add-hook 'org-mode-hook #'org-indent-mode) (add-hook 'org-mode-hook #'org-indent-mode)
(use-package org
:ensure t
:custom
(org-babel-load-languages '((emacs-lisp . t)
(python . t))))
#+END_SRC #+END_SRC
** Keymaps ** Keymaps