Re: [O] Custom environment for LaTeX export
Sebastien Vauban writes: > Throwing an idea here: make the `consequence' environment be a no-op in > Beamer? How would I do that, is there a variable excluding some environments ? Julien.
[O] Printing a google agenda-like view
I'd like to print a monthly view of the courses I will be giving next year. Up until now I used a google agenda for that, that can be printed nicely, one page per month. But I'd like to use org-mode for that too. calfw produces a nice monthly view but printing it will require a great deal of configuration to have something readable (maybe using enscriptprint). Does anybody have already managed something like that ? Also calfw prints the whole org-agenda and I only want some headings. What would be the best strategy : redefining the org-agenda view to include only those headings everytime I need to print this calendar ? Any insights on the best/easiest way to do it would be greatly appreciated. Julien.
[O] Tab completion for link to file
How can I get auto tab completion for links to files? e.g. [[file+sys:///Users/chris/projects/marketing 2014]] Thanks.
Re: [O] Tab completion for link to file
Chris Henderson writes: Hi Chris, > How can I get auto tab completion for links to files? Is C-u C-c C-l what you're looking for? >From the *Help* of `org-insert-link': > With a C-u prefix, prompts for a file to link to. The file name can > be selected using completion. > > e.g. [[file+sys:///Users/chris/projects/marketing 2014]] > > Thanks. -- Daimrod/Greg
Re: [O] Tab completion for link to file
yep, thanks. On Sun, Aug 10, 2014 at 6:49 PM, Daimrod wrote: > Chris Henderson writes: > > Hi Chris, > > > How can I get auto tab completion for links to files? > > Is C-u C-c C-l what you're looking for? > > From the *Help* of `org-insert-link': > > With a C-u prefix, prompts for a file to link to. The file name can > > be selected using completion. > > > > > > e.g. [[file+sys:///Users/chris/projects/marketing 2014]] > > > > Thanks. > > -- > Daimrod/Greg > >
Re: [O] [PATCH] org.el: make org-paragraph-fill ignore \[...\] regions starting and ending a line
Nicolas Goaziou writes: > Ignoring \[...\] when filling the paragraph is misleading. You may > believe the object doesn't belong to the paragraph at all. I think M-q > should, on the contrary, give clues about the structure of the document. > > Also, it doesn't make a difference when exporting to LaTeX, but it might > in back-ends with a different definition for paragraphs (e.g. HTML). to help me understand what kind of problems one could face with HTML (or another back-end), could you give a concrete example? > >> I do not quite understand what do you mean. Doesn't the Org syntax >> "just" defines the result of parsing a buffer (like in most >> programming languages where indentation and line breaks are just to >> help people reading code)? > > Indentation and line breaks are meaningful in Org. They are not just > syntactic sugar. Sorry, I didn't express myself correctly. I guess within a paragraph indentation and line breaks are syntactic sugar. Right? Regards, Federico
Re: [O] [PATCH] org.el: make org-paragraph-fill ignore \[...\] regions starting and ending a line
Nicolas Goaziou writes: > Ignoring \[...\] when filling the paragraph is misleading. You may > believe the object doesn't belong to the paragraph at all. I think M-q > should, on the contrary, give clues about the structure of the document. > > Also, it doesn't make a difference when exporting to LaTeX, but it might > in back-ends with a different definition for paragraphs (e.g. HTML). to help me understand what kind of problems one could face with HTML (or another back-end), could you give a concrete example? > >> I do not quite understand what do you mean. Doesn't the Org syntax >> "just" defines the result of parsing a buffer (like in most >> programming languages where indentation and line breaks are just to >> help people reading code)? > > Indentation and line breaks are meaningful in Org. They are not just > syntactic sugar. Sorry, I didn't express myself correctly. I guess within a paragraph indentation and line breaks are syntactic sugar. Right? Regards, Federico
Re: [O] "#+begin_src R :results output drawer" doesn't work.
Feng Shu gmail.com> writes: > > > #+begin_src R :results output drawer > "1" > "2" > #+end_src > > #+RESULTS: > : 2 > I get: #+RESULTS: :RESULTS: [1] "1" [1] "2" :END: #+BEGIN_SRC emacs-lisp :results drawer (org-version) #+END_SRC #+RESULTS: :RESULTS: 8.3beta :END: HTH, Chuck
[O] How can I autorun M-x linum-mode when file is opened?
How can I have a command auto-run when a file is opened from 'desktop recovery' please? I want to auto-run "M-x linum-mode" when I open my daily journal, which stays open all the time. Running that command will switch off linum-mode for that file, which may stop "file-rot" that I have observed in the past. This can, at present, only be resolved by shutting down emacs for half an hour or so, and then restarting it, and normal functionality will have been restored. Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.92.1 signature.asc Description: PGP signature
[O] Managing web bookmarks using Org-mode
Hi! I just summarized and blogged my work-flows to capture web bookmarks from Android (MobileOrg) and within Emacs/Org-mode. I manage them within Org-mode which replaced my delicious work-flows. Nothing fancy for moderate to advanced Org-mode users. Feedback welcome in any case. -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] How can I autorun M-x linum-mode when file is opened?
Aloha Sharon, Sharon Kimble writes: > How can I have a command auto-run when a file is opened from 'desktop > recovery' please? I want to auto-run "M-x linum-mode" when I open my > daily journal, which stays open all the time. Running that command will > switch off linum-mode for that file, which may stop "file-rot" that I > have observed in the past. This can, at present, only be resolved by > shutting down emacs for half an hour or so, and then restarting it, > and normal functionality will have been restored. Is this a question about Org mode? All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] How can I autorun M-x linum-mode when file is opened?
t...@tsdye.com (Thomas S. Dye) writes: > Aloha Sharon, > > Sharon Kimble writes: > >> How can I have a command auto-run when a file is opened from 'desktop >> recovery' please? I want to auto-run "M-x linum-mode" when I open my >> daily journal, which stays open all the time. Running that command will >> switch off linum-mode for that file, which may stop "file-rot" that I >> have observed in the past. This can, at present, only be resolved by >> shutting down emacs for half an hour or so, and then restarting it, >> and normal functionality will have been restored. > > Is this a question about Org mode? > Yes, the journal is written in org-mode, and its one big file of daily observations, and its a big problem for me. Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.92.1 signature.asc Description: PGP signature
Re: [O] How can I autorun M-x linum-mode when file is opened?
On 10 Aug 2014, Sharon Kimble wrote: [Edited for the sake of brevity] >>> How can I have a command auto-run when a file is opened from >>> 'desktop recovery' please? I want to auto-run "M-x linum-mode" when >>> I open my daily journal, which stays open all the time. Running that >>> command will switch off linum-mode for that file, which may stop >>> "file-rot" that I have observed in the past. This can, at present, >>> only be resolved by shutting down emacs for half an hour or so, and >>> then restarting it, and normal functionality will have been >>> restored. Have you considered using a hook? That is what they are for, and generally, I’ve found that linum mode in an org file can be annoying, so in my init file I have =(add-hook ‘org-mode-hook #’(lambda () (linum-mode -1)))=, and, while I have Linum on globally, this disables it for all org mode files. Sam -- Samuel W. Flint swfl...@flintfam.org (402) 517-8468 sip: swfl...@ekiga.net http://flintfam.org/~swflint http://samflint.com 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) Why is this email likely less than five sentences? http://five.sentenc.es pgpmH4z4gapCl.pgp Description: PGP signature
Re: [O] Managing web bookmarks using Org-mode
sounds great could you paste a link to your blog post? best z On Sun, Aug 10, 2014 at 7:48 PM, Karl Voit wrote: > Hi! > > I just summarized and blogged my work-flows to capture web bookmarks > from Android (MobileOrg) and within Emacs/Org-mode. I manage them > within Org-mode which replaced my delicious work-flows. > > Nothing fancy for moderate to advanced Org-mode users. > > Feedback welcome in any case. > > -- > mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: >> get Memacs from https://github.com/novoid/Memacs < > > https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on > github > > >
Re: [O] Managing web bookmarks using Org-mode
* Karl Voit wrote: > Hi! > > I just summarized and blogged my work-flows to capture web bookmarks > from Android (MobileOrg) and within Emacs/Org-mode. I manage them > within Org-mode which replaced my delicious work-flows. > > Nothing fancy for moderate to advanced Org-mode users. > > Feedback welcome in any case. ... and now also with the URL: http://karl-voit.at/2014/08/10/bookmarks-with-orgmode/ :-) -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] make orgtbl-ascii-plot easier to install
Le 28/07/2014 16:40, Bastien a écrit : >> Of course, I am still open to Dominik Carsten suggestion >> to add it into the core (org-table.el). >> http://thread.gmane.org/gmane.emacs.orgmode/79668 > Please go ahead and provide a patch for this, I agree this > is a nice addition for Org's core. > Sorry for the late answer, I was on the road. The patch is attached hereafter. Have fun Thierry >From 5fddaba2208c2cb4ce3b6bc24d0d10571124fb39 Mon Sep 17 00:00:00 2001 From: Thierry Banel Date: Mon, 11 Aug 2014 00:00:21 +0200 Subject: [PATCH] * org-table.el: add ascii plotting in tables, (orgtbl-ascii-plot): top-level function (orgtbl-ascii-draw), (orgtbl-uc-draw-grid), (orgtbl-uc-draw-cont): helper functions which go in table formulas for drawing bars * org.el: C-c p key binding on orgtbl-ascii-plot --- lisp/org-table.el | 83 + lisp/org.el |1 + 2 files changed, 84 insertions(+) diff --git a/lisp/org-table.el b/lisp/org-table.el index d1609f9..5921902 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -5004,6 +5004,89 @@ it here: http://gnuvola.org/software/j/aa2u/ascii-art-to-unicode.el."; (user-error "Please download ascii-art-to-unicode.el (use C-c C-l to insert the link to it)")) (buffer-string))) +(defun orgtbl-ascii-draw (value min max &optional width characters) + "Draws an ascii bar in a table. +VALUE is a the value to plot, the width of the bar to draw. +A value equal to MIN will be displayed as empty (zero width bar). +A value equal to MAX will draw a bar filling all the WIDTH. +WIDTH is the expected width in characters of the column. +CHARACTERS is a string of characters that will compose the bar, +with shades of grey from pure white to pure black. +It defaults to a 10 characters string of regular ascii characters. +" + (unless characters (setq characters " .:;c!lhVHW")) + (unless width (setq width 12)) + (if (stringp value) + (setq value (string-to-number value))) + (setq value (* (/ (- (+ value 0.0) min) (- max min)) width)) + (cond + ((< value 0) "too small") + ((> value width) "too large") + (t +(let ((len (1- (length characters + (concat + (make-string (floor value) (elt characters len)) + (string (elt characters + (floor (* (- value (floor value)) len) + +(defun orgtbl-uc-draw-grid (value min max &optional width) + "Draws an ascii bar in a table. +It is a variant of orgtbl-ascii-draw with Unicode block characters, +for a smooth display. +Bars appear as grids (to the extend the font allows). +" + ;; http://en.wikipedia.org/wiki/Block_Elements + ;; best viewed with the "DejaVu Sans Mono" font + (orgtbl-ascii-draw value min max width " \u258F\u258E\u258D\u258C\u258B\u258A\u2589")) + +(defun orgtbl-uc-draw-cont (value min max &optional width) + "Draws an ascii bar in a table. +It is a variant of orgtbl-ascii-draw with Unicode block characters, +for a smooth display. +Bars are solid (to the extend the font allows). +" + (orgtbl-ascii-draw value min max width " \u258F\u258E\u258D\u258C\u258B\u258A\u2589\u2588")) + +;;;###autoload +(defun orgtbl-ascii-plot (&optional ask) + "Draws an ascii bars plot in a column, out of values found in another column. +A numeric prefix may be given to override the default 12 characters wide plot. +" + (interactive "P") + (let ((col (org-table-current-column)) + (min 1e999) + (max -1e999) + (length 12) + (table (org-table-to-lisp))) +(cond ((consp ask) + (setq length + (or + (read-string "Length of column [12] " nil nil 12) + 12))) + ((numberp ask) + (setq length ask))) +(mapc + (lambda (x) + (when (consp x) + (setq x (nth (1- col) x)) + (when (string-match + "^[-+]?\\([0-9]*[.]\\)?[0-9]*\\([eE][+-]?[0-9]+\\)?$" + x) + (setq x (string-to-number x)) + (if (> min x) (setq min x)) + (if (< max x) (setq max x) + (or (memq 'hline table) table)) ;; skip table header if any +(org-table-insert-column) +(org-table-move-column-right) +(org-table-store-formulas + (cons + (cons + (number-to-string (1+ col)) + (format "'(%s $%s %s %s %s)" + "orgtbl-ascii-draw" col min max length)) + (org-table-get-stored-formulas))) +(org-table-recalculate t))) + (defun org-table-get-remote-range (name-or-id form) "Get a field value or a list of values in a range from table at ID. diff --git a/lisp/org.el b/lisp/org.el index 9b25204..928a5dd 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -19459,6 +19459,7 @@ boundaries." (org-defkey org-mode-map "\C-c="'org-table-eval-formula) (org-defkey org-mode-map "\C-c'"'org-edit-special) (org-defkey org-mode-map "\C-c`"'org-table-edit-field) +(org-defkey org-mode-map "\C-cp"'orgtbl-ascii-plot) (org-defkey org-mode-map "\C-c|"'org-table-create-or-convert-from-region) (org-defkey org-mode-map [(control ?#)] 'org-table-rotate-recalc-marks) (org-defkey org-mode-map