Merge branch 'master' of gitlab.com:chriscochrun/dotemacs
This commit is contained in:
commit
a45cd4b976
18
README.org
18
README.org
|
@ -776,6 +776,19 @@ Sometimes I need to edit CSV files quickly
|
||||||
:mode ("\\.csv\\'" . csv-mode))
|
:mode ("\\.csv\\'" . csv-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
*** Restclient
|
||||||
|
Sometimes dealing with REST APIs it's easiest to do this incrementally with restclient.el
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package restclient
|
||||||
|
:commands (restclient-mode))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
Let's also add org-babel support for this to create documentation easier.
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package ob-restclient
|
||||||
|
:after org)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** File Management
|
** File Management
|
||||||
*** Dired
|
*** 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.
|
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.
|
||||||
|
@ -886,6 +899,7 @@ Part of this config includes some special capture templates for my work as a you
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package org
|
(use-package org
|
||||||
:straight t
|
:straight t
|
||||||
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(setq org-startup-indented t
|
(setq org-startup-indented t
|
||||||
org-edit-src-content-indentation 0
|
org-edit-src-content-indentation 0
|
||||||
|
@ -900,7 +914,8 @@ Part of this config includes some special capture templates for my work as a you
|
||||||
'((emacs-lisp . t)
|
'((emacs-lisp . t)
|
||||||
(python . t)
|
(python . t)
|
||||||
(ditaa . t)
|
(ditaa . t)
|
||||||
(shell . t)))
|
(shell . t)
|
||||||
|
(restclient . t)))
|
||||||
|
|
||||||
(setq org-ditaa-jar-path "/usr/bin/ditaa")
|
(setq org-ditaa-jar-path "/usr/bin/ditaa")
|
||||||
|
|
||||||
|
@ -912,6 +927,7 @@ Part of this config includes some special capture templates for my work as a you
|
||||||
(add-to-list 'org-structure-template-alist '("yaml" . "src yaml"))
|
(add-to-list 'org-structure-template-alist '("yaml" . "src yaml"))
|
||||||
(add-to-list 'org-structure-template-alist '("yml" . "src yaml"))
|
(add-to-list 'org-structure-template-alist '("yml" . "src yaml"))
|
||||||
(add-to-list 'org-structure-template-alist '("q" . "quote"))
|
(add-to-list 'org-structure-template-alist '("q" . "quote"))
|
||||||
|
(add-to-list 'org-structure-template-alist '("rc" . "src restclient"))
|
||||||
|
|
||||||
(setq org-capture-templates
|
(setq org-capture-templates
|
||||||
'(("t" "Personal todo" entry
|
'(("t" "Personal todo" entry
|
||||||
|
|
11
init.el
11
init.el
|
@ -446,6 +446,12 @@ vertically."
|
||||||
(use-package csv-mode
|
(use-package csv-mode
|
||||||
:mode ("\\.csv\\'" . csv-mode))
|
:mode ("\\.csv\\'" . csv-mode))
|
||||||
|
|
||||||
|
(use-package restclient
|
||||||
|
:commands (restclient-mode))
|
||||||
|
|
||||||
|
(use-package ob-restclient
|
||||||
|
:after org)
|
||||||
|
|
||||||
(use-package dired
|
(use-package dired
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:straight nil
|
:straight nil
|
||||||
|
@ -527,6 +533,7 @@ vertically."
|
||||||
|
|
||||||
(use-package org
|
(use-package org
|
||||||
:straight t
|
:straight t
|
||||||
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(setq org-startup-indented t
|
(setq org-startup-indented t
|
||||||
org-edit-src-content-indentation 0
|
org-edit-src-content-indentation 0
|
||||||
|
@ -541,7 +548,8 @@ vertically."
|
||||||
'((emacs-lisp . t)
|
'((emacs-lisp . t)
|
||||||
(python . t)
|
(python . t)
|
||||||
(ditaa . t)
|
(ditaa . t)
|
||||||
(shell . t)))
|
(shell . t)
|
||||||
|
(restclient . t)))
|
||||||
|
|
||||||
(setq org-ditaa-jar-path "/usr/bin/ditaa")
|
(setq org-ditaa-jar-path "/usr/bin/ditaa")
|
||||||
|
|
||||||
|
@ -553,6 +561,7 @@ vertically."
|
||||||
(add-to-list 'org-structure-template-alist '("yaml" . "src yaml"))
|
(add-to-list 'org-structure-template-alist '("yaml" . "src yaml"))
|
||||||
(add-to-list 'org-structure-template-alist '("yml" . "src yaml"))
|
(add-to-list 'org-structure-template-alist '("yml" . "src yaml"))
|
||||||
(add-to-list 'org-structure-template-alist '("q" . "quote"))
|
(add-to-list 'org-structure-template-alist '("q" . "quote"))
|
||||||
|
(add-to-list 'org-structure-template-alist '("rc" . "src restclient"))
|
||||||
|
|
||||||
(setq org-capture-templates
|
(setq org-capture-templates
|
||||||
'(("t" "Personal todo" entry
|
'(("t" "Personal todo" entry
|
||||||
|
|
Loading…
Reference in a new issue