From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: [Orgmode] Unable to capture the file name generated using matplotlib Date: Mon, 25 May 2015 14:30:04 -0400 Message-ID: References: <87wq0qsy4o.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15ab99d365f00516ec32c5 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ywx8a-00056w-D3 for emacs-orgmode@gnu.org; Mon, 25 May 2015 14:30:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ywx8Y-0006m5-1w for emacs-orgmode@gnu.org; Mon, 25 May 2015 14:30:08 -0400 Received: from mail-pd0-x234.google.com ([2607:f8b0:400e:c02::234]:35515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ywx8X-0006ir-JH for emacs-orgmode@gnu.org; Mon, 25 May 2015 14:30:06 -0400 Received: by pdea3 with SMTP id a3so73807851pde.2 for ; Mon, 25 May 2015 11:30:04 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dror Atariah Cc: Nick Dokos , "emacs-orgmode@gnu.org" , Ken Mankoff --047d7b15ab99d365f00516ec32c5 Content-Type: text/plain; charset=UTF-8 With emacs -Q, and this org file: #+BEGIN_SRC emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (python . t))) #+END_SRC #+RESULTS: #+BEGIN_SRC python :session with_matplotlib :results file :exports both import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig=plt.figure(figsize=(3,2)) plt.plot([1,3,2]) plt.savefig('myfig.png') 'myfig.png' #+END_SRC #+RESULTS: [[file:myfig.png]] I get what you expect to happen. In my customized emacs, I get something else that is more like you see. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Mon, May 25, 2015 at 2:22 PM, Dror Atariah wrote: > On Mon, May 25, 2015 at 7:29 PM, Ken Mankoff wrote: > >> >> On 2015-05-25 at 13:25, Dror Atariah wrote: >> > I am sorry for reposting, but I'm still in the dark. Am I the only one >> who >> > experience this kind of issue? >> >> Don't know. >> >> > Did someone managed to reproduce the problem? >> >> I could not reproduce it. >> >> > Does anyone see this message? :) >> >> Yes. >> > > Thanks for your reply!!!! :) > > >> >> I'm on Mac too, which is where your problem is. Are you starting with >> "emacs -Q"? I haven't seen you post a full MWE with both =init.el= and = >> test.org=. You did provide a test Org file but it wasn't clear to me if >> that was being used with emacs -Q. >> >> I tried to evaluate the problematic file using =emacs -Q= and the problem > is the same. > > Following is the section of my =init.el= that deals with org-mode (if you > need more, let me know): > > > ------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------ > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > ;; Org Mode related > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > > (setq org-directory "~/Dropbox/org") > > ;; Set a location for the list of agena files > (setq org-agenda-files "~/.emacs.d/agenda_files") > > ;; Assigns org-mode to .org files > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) > (define-key global-map "\C-cl" 'org-store-link) > (define-key global-map "\C-ca" 'org-agenda) > (setq org-log-done t) > (when window-system (require 'org-mouse)) > > ;; Auto enable flyspell-mode > (add-hook 'org-mode-hook 'turn-on-flyspell) > > ;; Auto fill minor mode in org files > (add-hook 'org-mode-hook 'turn-on-auto-fill) > > ;; Enable org-indent-mode for org buffers > (add-hook 'org-mode-hook > (lambda ()(org-indent-mode t)) t) > > ;; Use text-mode abbrev table in org-mode > (add-hook 'org-mode-hook '(lambda () (setq local-abbrev-table > text-mode-abbrev-table))) > > ;; Enables selection using SHIFT, while maintaining useful actions > ;; related to SHITF in org > (setq org-support-shift-select 't) > > ;; Enable smart qoutes (http://stackoverflow.com/q/15097114/671013) > (setq org-export-with-smart-quotes t) > > ;; Customize the TODO-like keywords > (setq org-use-fast-todo-selection t) > (setq org-todo-keywords > '((sequence "TODO(t)" "PROCESS(p@/!)" "|" "DONE(d!)" "CANCELED(c@ > /!)"))) > (setq org-todo-keyword-faces > (quote (("TODO" :foreground "red" :weight bold) > ("PROCESS" :foreground "blue" :weight bold) > ("DONE" :foreground "forest green" :weight bold) > ("CANCELLED" :foreground "forest green" :weight bold)))) > (setq org-log-into-drawer t) > > ;; Capture-org > (setq org-default-notes-file (concat org-directory "/notes.org")) > (define-key global-map "\C-cc" 'org-capture) > > (setq org-capture-templates > (quote (("t" "todo" entry (file (concat org-directory "/gtd.org")) > "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) > ("n" "note" entry (file (concat org-directory "/gtd.org")) > "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t) > ("j" "Journal" entry (file+datetree (concat org-directory "/ > diary.org")) > "* %?\n%U\n" :clock-in t :clock-resume t) > ("v" "Vocabulary" entry > (file+headline (concat org-directory "/vocab.org") > "Vocabulary") > "* %^{The word} :drill:\n:PROPERTIES:\n:Part-of-speech: > %^{Part of speech|verb|noun|adj|adv}\n:END:\n %t\n %^{Extended word (may be > empty)} \n** Answer \n%^{The definition}") > ))) > > ;; Make use of refTeX in org-mode > (defun org-mode-reftex-setup () > "Setups RefTeX to be used with a org file. Code is based on > http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/. > > Once you run this, you will be asked to set a master file of the org." > (interactive) > (load-library "reftex") > (and (buffer-file-name) > (file-exists-p (buffer-file-name)) > (reftex-parse-all)) > (define-key org-mode-map (kbd "C-c )") 'reftex-citation) > ) > > ;; Open indirect buffer in new frame > (setq org-indirect-buffer-display 'new-frame) > > ;; Set common TAGS > ;; Check: > http://sachachua.com/blog/2008/01/tagging-in-org-plus-bonus-code-for-timeclocks-and-tags/ > (setq org-tag-alist '( > ("PRIVATE" . ?p) > (:startgroup . nil) > ("WORK" .?w) > (:grouptags . nil) > ("WORK@mittagseminar" . ?m) > ("WORK@open_questions" . ?i) > ("WORK@diss" . ?d) > ("WORK@CV" . nil) > (:endgroup . nil) > (:startgroup . nil) > ("IT" . ?I) > (:grouptags . nil) > ("IT@emacs" . nil) > ("IT@git" . nil) > ("IT@TeX" . nil) > (:endgroup . nil) > (:startgroup . nil) > ("PROG" . ?p) > (:grouptags . nil) > ("PROG@mathematica" . nil) > ("PROG@cgal" . nil) > (:endgroup . nil) > (:endgroup . nil) > ("4freeTime" . ?4) > )) > > ;; Targets include this file and any file contributing to the agenda - up > to 9 levels deep > (setq org-refile-targets (quote ((nil :maxlevel . 9) > (org-agenda-files :maxlevel . 9)))) > > ;; Add time stamp of refiling > (setq org-log-refile 'time) > > ;; Use full outline paths for refile targets - we file directly with IDO > (setq org-refile-use-outline-path t) > > ;; Targets complete directly with IDO > (setq org-outline-path-complete-in-steps nil) > > ;; Allow refile to create parent tasks with confirmation > (setq org-refile-allow-creating-parent-nodes (quote confirm)) > > ;; Use IDO for both buffer and file completion and ido-everywhere to t > (setq org-completion-use-ido t) > (setq ido-everywhere t) > (setq ido-max-directory-size 100000) > (ido-mode (quote both)) > > ;; set latexmk the default LaTeX compiler for org-mode and in general > (setq org-latex-to-pdf-process (list "latexmk -f -pdf %f")) > > ;; Enable clocking across sessions > (setq org-clock-persist 'history) > (org-clock-persistence-insinuate) > > ;; Set the number of clock items before wrapping them in a LOGBOOK drawer > (setq org-clock-into-drawer '2) > > ;; Set the number of clock items before wrapping them in a LOGBOOK drawer > (setq org-clock-into-drawer '2) > > ;; MobileOrg > (load "mobileorg-setup") > > ;; Org drill > (require 'org-drill) > (setq org-drill-save-buffers-after-drill-sessions-p nil) > (setq org-drill-scope 'file-no-restriction) > > ;; org2blog > (require 'metaweblog) > (require 'org2blog-autoloads) > > ;; Babel > (setq org-src-preserve-indentation t) ;; > http://stackoverflow.com/a/20903001/671013 > > (setq org-src-fontify-natively t) > > (setq org-confirm-babel-evaluate nil) > > (org-babel-do-load-languages > 'org-babel-load-languages > '((elasticsearch . t) > (emacs-lisp . t) > (python . t) > (R . t))) > > ------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------ > > Best, > Dror > --047d7b15ab99d365f00516ec32c5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
With emacs -Q, and this org file:

= #+BEGIN_SRC emacs-lisp
(org-babel-do-load-languages
=C2= =A0'org-babel-load-languages
=C2=A0'((emacs-lisp . t)
=C2=A0 =C2=A0(python . t)))
#+END_SRC

=
#+RESULTS:

#+BEGIN_SRC python :session with_m= atplotlib :results file :exports both
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
fig=3Dplt.figure(figsize=3D(3,2))
plt.plot([1,3,2])
=
plt.savefig('myfig.png')
'myfig.png'
#+END_SRC

#+RESULTS:
[[file:myfig.png= ]]

I get what you expect to happen. In my cu= stomized emacs, I get something else that is more like you see.
<= br>

John

---= --------------------------------
Professor John Kitchin=C2=A0
Doherty= Hall A207F
Department of Chemical Engineering
Carnegie Mellon Univer= sity
Pittsburgh, PA 15213
412-268-7803

On Mon, May 25, 2015 at 2:22 PM, Dror Ataria= h <drorata@gmail.com> wrote:
<= span class=3D"">On Mon, May 25, 2015 at 7:29 PM, Ken Mankoff <mankoff@gmai= l.com> wrote:

On 2015-05-25 at 13:25, Dror Atariah <drorata@gmail.com> wrote:
> I am sorry for reposting, but I'm still in the dark. Am I the only= one who
> experience this kind of issue?

Don't know.

> Did someone managed to reproduce the problem?

I could not reproduce it.

> Does anyone see this message? :)

Yes.

Tha= nks for your reply!!!! :)
=C2=A0

I'm on Mac too, which is where your problem is. Are you starting with &= quot;emacs -Q"? I haven't seen you post a full MWE with both =3Din= it.el=3D and =3Dtest.org= =3D. You did provide a test Org file but it wasn't clear to me if that = was being used with emacs -Q.

I = tried to evaluate the problematic file using =3Demacs -Q=3D and the problem= is the same.

Following is the section of my =3Din= it.el=3D that deals with org-mode (if you need more, let me know):

------8<------8<------8<------8<------8<---= ---8<------8<------8<------8<------8<------8<------8<-= -----8<------8<------
;;;;;;;;;;;;;;;;;;;;;;;;;;;;= ;;;;;;;;;;;;;;;
;; Org Mode related
;;;;;;;;;;;;;;;;;;;= ;;;;;;;;;;;;;;;;;;;;;;;;

(setq org-directory "= ;~/Dropbox/org")

;; Set a location for the li= st of agena files
(setq org-agenda-files "~/.emacs.d/agenda_= files")

;; Assigns org-mode to .org files
(add-to-list 'auto-mode-alist '("\\.org$" . org-mo= de))
(define-key global-map "\C-cl" 'org-store-link= )
(define-key global-map "\C-ca" 'org-agenda)
=
(setq org-log-done t)
(when window-system (require 'org-= mouse))

;; Auto enable flyspell-mode
(ad= d-hook 'org-mode-hook 'turn-on-flyspell)

;= ; Auto fill minor mode in org files
(add-hook 'org-mode-hook = 'turn-on-auto-fill)

;; Enable org-indent-mode = for org buffers
(add-hook 'org-mode-hook
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 (lambda ()(org-indent-mode t)) t)

;; Use text-mode abbrev table in org-mode
(add-hook '= ;org-mode-hook '(lambda () (setq local-abbrev-table text-mode-abbrev-ta= ble)))

;; Enables selection using SHIFT, while mai= ntaining useful actions
;; related to SHITF in org
(set= q org-support-shift-select 't)

(setq org-= export-with-smart-quotes t)

;; Customize the TODO-= like keywords
(setq org-use-fast-todo-selection t)
(set= q org-todo-keywords
=C2=A0 =C2=A0 =C2=A0 '((sequence "TO= DO(t)" "PROCESS(p@/!)" "|" "DONE(d!)" &q= uot;CANCELED(c@/!)")))
(setq org-todo-keyword-faces
=C2=A0 =C2=A0 =C2=A0 (quote (("TODO" :foreground "red"= ; :weight bold)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = ("PROCESS" :foreground "blue" :weight bold)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("DONE" :foregro= und "forest green" :weight bold)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("CANCELLED" :foreground "forest= green" :weight bold))))
(setq org-log-into-drawer t)
<= div>
;; Capture-org
(setq org-default-notes-file (c= oncat org-directory "/n= otes.org"))
(define-key global-map "\C-cc" = 9;org-capture)

(setq org-capture-templates
=C2=A0 =C2=A0 =C2=A0 (quote (("t" "todo" entry (file= (concat org-directory "/= gtd.org"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0"* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("n" "= ;note" entry (file (concat org-directory "/gtd.org"))
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"* %? :NOTE:\n%U\n%a\n" :clock-= in t :clock-resume t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 ("j" "Journal" entry (file+datetree (concat org-= directory "/diary.org"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 "Vocabulary")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0"* %^{The word} :drill:\n:PROPERTIES:\n:Part-of-sp= eech: %^{Part of speech|verb|noun|adj|adv}\n:END:\n %t\n %^{Extended word (= may be empty)} \n** Answer \n%^{The definition}")
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 )))

;; Make= use of refTeX in org-mode
(defun org-mode-reftex-setup ()
<= div>=C2=A0 "Setups RefTeX to be used with a org file. Code is based on= http://www.mfasold.net/blog/2009/02/using-ema= cs-org-mode-to-draft-papers/.

Once you run thi= s, you will be asked to set a master file of the org."
=C2= =A0 (interactive)
=C2=A0 (load-library "reftex")
<= div>=C2=A0 (and (buffer-file-name)
=C2=A0 =C2=A0 =C2=A0 =C2=A0(fi= le-exists-p (buffer-file-name))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(refte= x-parse-all))
=C2=A0 (define-key org-mode-map (kbd "C-c )&qu= ot;) 'reftex-citation)
=C2=A0 )

;; O= pen indirect buffer in new frame
(setq org-indirect-buffer-displa= y 'new-frame)

;; Set common TAGS
;; = Check: http://sachachua.com/bl= og/2008/01/tagging-in-org-plus-bonus-code-for-timeclocks-and-tags/
(setq org-tag-alist '(
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("PRIVATE" . ?p)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 (:startgroup . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("WORK" .?w)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (:grouptags . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("WORK@mittagseminar" . ?m)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ("WORK@open_questions" . ?i)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("WORK@= diss" . ?d)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("WORK@CV" . nil)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (:end= group . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 (:startgroup . nil)
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("IT" . = ?I)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 (:grouptags . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("IT@emacs" . ni= l)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 ("IT@git" . nil)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("IT@TeX"= . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 (:endgroup . nil)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (:startgroup . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ("PROG" . ?p)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (:grouptags . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 ("PROG@mathematica" . nil)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("PROG@cgal&qu= ot; . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 (:endgroup . nil)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (:endgroup . nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ("4freeTime" . ?4)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ))

;; Targets include this file and any file contributing to the agenda = - up to 9 levels deep
(setq org-refile-targets (quote ((nil :maxl= evel . 9)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(org-agenda-= files :maxlevel . 9))))

;; Add time stamp of refil= ing
(setq org-log-refile 'time)

;; U= se full outline paths for refile targets - we file directly with IDO
<= div>(setq org-refile-use-outline-path t)

;; Target= s complete directly with IDO
(setq org-outline-path-complete-in-s= teps nil)

;; Allow refile to create parent tasks w= ith confirmation
(setq org-refile-allow-creating-parent-nodes (qu= ote confirm))

;; Use IDO for both buffer and file = completion and ido-everywhere to t
(setq org-completion-use-ido t= )
(setq ido-everywhere t)
(setq ido-max-directory-size = 100000)
(ido-mode (quote both))

;; set l= atexmk the default LaTeX compiler for org-mode and in general
(se= tq org-latex-to-pdf-process (list "latexmk -f -pdf %f"))

;; Enable clocking across sessions
(setq org-clo= ck-persist 'history)
(org-clock-persistence-insinuate)
<= div>
;; Set the number of clock items before wrapping them in= a LOGBOOK drawer
(setq org-clock-into-drawer '2)
<= br>
;; Set the number of clock items before wrapping them in a LO= GBOOK drawer
(setq org-clock-into-drawer '2)

;; MobileOrg
(load "mobileorg-setup")

;; Org drill
(require 'org-drill)
= (setq org-drill-save-buffers-after-drill-sessions-p nil)
(setq or= g-drill-scope 'file-no-restriction)

;; org2blo= g
(require 'metaweblog)
(require 'org2blog-auto= loads)

;; Babel
(setq org-src-preser= ve-indentation t) ;; http://stackoverflow.com/a/20903001/671013

(setq org-src-fontify-natively t)

= (setq org-confirm-babel-evaluate nil)

(org-babel-d= o-load-languages
=C2=A0'org-babel-load-languages
= =C2=A0'((elasticsearch . t)
=C2=A0 =C2=A0(emacs-lisp . t)
=C2=A0 =C2=A0(python . t)
=C2=A0 =C2=A0(R . t)))
------8<------8<------8<------8<------8<------8<--= ----8<------8<------8<------8<------8<------8<------8<= ------8<------

Best,
Dror

--047d7b15ab99d365f00516ec32c5--