From db027945a290edb03cb4ff82a0f44125ed146af8 Mon Sep 17 00:00:00 2001 From: Mateus Pinto Rodrigues Date: Sat, 2 Dec 2017 16:35:27 -0200 Subject: [PATCH] update config --- elisp/extras.el | 1 + elisp/ivy-setup.el | 8 ++++++-- elisp/keypad.el | 12 ++++++------ elisp/org-setup.el | 24 +++++++----------------- 4 files changed, 20 insertions(+), 25 deletions(-) diff --git a/elisp/extras.el b/elisp/extras.el index c6eec7b..83613cd 100644 --- a/elisp/extras.el +++ b/elisp/extras.el @@ -13,3 +13,4 @@ (load "~/.emacs.d/elisp/bibtex-setup.el") (load "~/.emacs.d/elisp/ivy-setup.el") ;(load "~/.emacs.d/elisp/geiser-setup.el") +(load "~/.emacs.d/elisp/keypad.el") diff --git a/elisp/ivy-setup.el b/elisp/ivy-setup.el index cc4a4c5..1d9ac96 100644 --- a/elisp/ivy-setup.el +++ b/elisp/ivy-setup.el @@ -20,8 +20,12 @@ ;; where are the pdfs (setq bibtex-completion-library-path '("~/repos/notabug/pesquisa/memory")) -;; where is the notes -(setq bibtex-completion-notes-path "~/repos/notabug/paper_notes.org") +;; where are the notes +(setq bibtex-completion-notes-path "~/repos/notabug/pesquisa/paper_notes.org") ;; some handy visual markers (setq bibtex-completion-pdf-symbol "⌘") (setq bibtex-completion-notes-symbol "✎") +;; open pdfs in mupdf +(setq bibtex-completion-pdf-open-function + (lambda (fpath) + (call-process "mupdf" nil 0 nil fpath))) diff --git a/elisp/keypad.el b/elisp/keypad.el index 47c4d63..32d28cc 100644 --- a/elisp/keypad.el +++ b/elisp/keypad.el @@ -4,12 +4,12 @@ (global-set-key (kbd "") 'delete-window) (global-set-key (kbd "") 'delete-other-windows) (global-set-key (kbd "") 'split-window-below) -(global-set-key (kbd "") 'xah-open-file-at-cursor) +(global-set-key (kbd "") 'ivy-bibtex) -(global-set-key (kbd "") 'xah-close-current-buffer) -(global-set-key (kbd "") 'xah-previous-user-buffer) -(global-set-key (kbd "") 'xah-next-user-buffer) +;(global-set-key (kbd "") 'xah-close-current-buffer) +;(global-set-key (kbd "") 'xah-previous-user-buffer) +;(global-set-key (kbd "") 'xah-next-user-buffer) ;; with control key down -(global-set-key (kbd "") 'xah-previous-emacs-buffer) -(global-set-key (kbd "") 'xah-next-emacs-buffer) +;(global-set-key (kbd "") 'xah-previous-emacs-buffer) +;(global-set-key (kbd "") 'xah-next-emacs-buffer) diff --git a/elisp/org-setup.el b/elisp/org-setup.el index 57b03b7..44d2e88 100644 --- a/elisp/org-setup.el +++ b/elisp/org-setup.el @@ -9,30 +9,20 @@ (require 'ox-publish) (setq org-publish-project-alist '(("org-notes" - :base-directory "~/org/" + :base-directory "~/repos/csphy/website/org/" :base-extension "org" - :publishing-directory "~/html/" + :publishing-directory "~/repos/csphy/website/jekyll/" :recursive t :publishing-function org-html-publish-to-html :headline-leves 4 ;Just the default for this project. - :with-toc nil - :section-numbers nil - :with-author f - :with-creator nil - :with-date nil - :with-timestamps nil - :with-tage nil - - :html-preamble nil - :html-postamble nil - :html-validation-link f - :html-doctype "html5" + :html-extension "html" + :body-only f ;; Only export section between ) ("org-static" - :base-directory "~/org/" - :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg" - :publishing-directory "~/html/" + :base-directory "~/repos/csphy/website/org/" + :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php" + :publishing-directory "~/repos/csphy/website/" :recursive t :publishing-function org-publish-attachment )