Compare commits
2 Commits
b7ec935770
...
48d7cbf15f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
48d7cbf15f | ||
|
|
15cb4becc9 |
@@ -29,8 +29,15 @@
|
|||||||
|
|
||||||
;; Org
|
;; Org
|
||||||
(use-package org
|
(use-package org
|
||||||
:config
|
;; The following binds are always needed. Why?
|
||||||
(load "~/.emacs.d/elisp/org-setup.el"))
|
:bind (("\C-cl" . 'org-store-link)
|
||||||
|
("\C-ca" . 'org-agenda)
|
||||||
|
("\C-cc" . 'org-capture))
|
||||||
|
:hook ((org-shiftup-final . windmove-up)
|
||||||
|
(org-shiftleft-final . windmove-left)
|
||||||
|
(org-shiftdown-final-hook . windmove-down)
|
||||||
|
(org-shiftright-final . windmove-right))
|
||||||
|
:config (load "~/.emacs.d/elisp/org-setup.el"))
|
||||||
(use-package org-ref)
|
(use-package org-ref)
|
||||||
|
|
||||||
;; Writing
|
;; Writing
|
||||||
@@ -146,10 +153,8 @@
|
|||||||
|
|
||||||
(use-package eglot
|
(use-package eglot
|
||||||
:straight (:type built-in)
|
:straight (:type built-in)
|
||||||
:ensure t
|
|
||||||
:defer t
|
:defer t
|
||||||
:hook ((python-base-mode . eglot-ensure))
|
:hook ((python-base-mode . eglot-ensure)))
|
||||||
)
|
|
||||||
|
|
||||||
;; TRAMP
|
;; TRAMP
|
||||||
(load "~/.emacs.d/elisp/tramp-setup.el")
|
(load "~/.emacs.d/elisp/tramp-setup.el")
|
||||||
|
|||||||
@@ -1,29 +1,15 @@
|
|||||||
;; The following lines are always needed. Choose your own keys.
|
|
||||||
;; Org mode keys
|
|
||||||
(global-set-key "\C-cl" 'org-store-link)
|
|
||||||
(global-set-key "\C-ca" 'org-agenda)
|
|
||||||
(global-set-key "\C-cc" 'org-capture)
|
|
||||||
(global-set-key "\C-cb" 'org-iswitchb)
|
|
||||||
|
|
||||||
;; Make windmove work in Org mode:
|
|
||||||
(add-hook 'org-shiftup-final-hook 'windmove-up)
|
|
||||||
(add-hook 'org-shiftleft-final-hook 'windmove-left)
|
|
||||||
(add-hook 'org-shiftdown-final-hook 'windmove-down)
|
|
||||||
(add-hook 'org-shiftright-final-hook 'windmove-right)
|
|
||||||
|
|
||||||
;; open org file with everything folded
|
;; open org file with everything folded
|
||||||
(setq org-startup-folded t)
|
(setq org-startup-folded t
|
||||||
|
;; preserve indentation on output
|
||||||
;; preserve indentation on output
|
org-src-preserve-indentation t
|
||||||
(setq org-src-preserve-indentation t)
|
;; some config for org-babel
|
||||||
|
org-confirm-babel-evaluate nil
|
||||||
;; some config for org-babel
|
|
||||||
(setq org-confirm-babel-evaluate nil
|
|
||||||
org-src-fontify-natively t
|
org-src-fontify-natively t
|
||||||
org-src-tab-acts-natively t
|
org-src-tab-acts-natively t
|
||||||
org-hide-emphasis-markers t
|
org-hide-emphasis-markers t
|
||||||
org-babel-python-command "python3")
|
org-babel-python-command "python3")
|
||||||
|
|
||||||
|
|
||||||
;; load languages babel
|
;; load languages babel
|
||||||
(org-babel-do-load-languages
|
(org-babel-do-load-languages
|
||||||
'org-babel-load-languages
|
'org-babel-load-languages
|
||||||
@@ -39,21 +25,15 @@
|
|||||||
|
|
||||||
;; default apps to open files with org-mode
|
;; default apps to open files with org-mode
|
||||||
(setq org-file-apps
|
(setq org-file-apps
|
||||||
(quote
|
'((auto-mode . emacs)
|
||||||
((auto-mode . emacs)
|
|
||||||
("\\.mm\\'" . default)
|
("\\.mm\\'" . default)
|
||||||
("\\.pdf\\'" . "emacsclient %s")
|
("\\.pdf\\'" . "emacsclient %s")
|
||||||
("\\.djvu\\'" . "djview %s"))))
|
("\\.djvu\\'" . "djview %s")))
|
||||||
|
|
||||||
;; define sequence of TODO keywords
|
;; define sequence of TODO keywords
|
||||||
(setq org-todo-keywords
|
(setq org-todo-keywords
|
||||||
'((sequence "TODO" "IN PROGRESS" "|" "DONE")))
|
'((sequence "TODO" "IN PROGRESS" "|" "DONE")))
|
||||||
|
|
||||||
;; (setq reftex-default-bibliography '("~/repos/csphy/pesquisa/vis.bib"))
|
|
||||||
;; (setq org-ref-bibliography-notes "~/repos/csphy/pesquisa/paper-notes.org"
|
|
||||||
;; org-ref-default-bibliography '("~/repos/csphy/pesquisa/vis.bib")
|
|
||||||
;; org-ref-pdf-directory "~/repos/csphy/pesquisa/vis")
|
|
||||||
|
|
||||||
;; Use biber to process bibtex
|
;; Use biber to process bibtex
|
||||||
(setq org-latex-pdf-process
|
(setq org-latex-pdf-process
|
||||||
'("xelatex -interaction nonstopmode -output-directory %o %f"
|
'("xelatex -interaction nonstopmode -output-directory %o %f"
|
||||||
|
|||||||
Reference in New Issue
Block a user