[O] org-present key bindings for Logitech R400 handheld presenter
I made myself a .emacs snippet with some bindings for using a Logitech R400 presenter with org-present; maybe some of you can use this, too. Minor questions noted below. - (defun my-on-org-mode () (local-set-key (kbd f5) 'org-present)) (defun my-on-org-present () (org-present-big) (org-present-read-only) (org-display-inline-images) (local-set-key (kbd next) 'org-present-next) (local-set-key (kbd prior) 'org-present-prev) (local-set-key (kbd escape) 'org-present-quit) (local-set-key (kbd .) 'org-present-beginning)) (defun my-on-org-present-quit () (local-unset-key (kbd next)) (local-unset-key (kbd prior)) (local-unset-key (kbd escape)) (local-unset-key (kbd .))) (add-hook 'org-mode-hook 'my-on-org-mode) (add-hook 'org-present-mode-hook 'my-on-org-present) (add-hook 'org-present-mode-quit-hook 'my-on-org-present-quit) - 1) The R400 just sends f5 and escape alternatingly on the start/stop presentation button. If you get it in a mixed up state so that it toggles the wrong way around, just turn it off (on its side) and on again. First stroke will always be f5. 2) Originally I wanted to provide toggling read only using the last key (lower right on the presenter, temporarily blank). Didn't work This way: (defun my-org-present-ro () (interactive) (local-set-key (kbd .) 'my-org-present-rw) (org-present-read-only)) (defun my-org-present-rw () (interactive) (local-set-key (kbd .) 'my-org-present-ro) (org-present-read-write)) ; + calling my-org-present-ro instead of org-present-read-only in my-on-org-present For me, no issue practically speaking, since I pretty much always want R/O anyway, but out of curiousity – what was I doing wrong? Cheers, Bernd -- Senior Software Engineer Xaidat GmbH Wickenburggasse 5 8010 Graz Austria / Europe web: http://www.xaidat.com/ phone: +43-676-845023-706 email: bernd.h...@xaidat.com FN 384295s, LG ZRS Graz UID-Nr. ATU67414611
Re: [O] Org-Mode and Mac OS X advice
I'm using the dailies from ELPA, upgrading occasionally. Works well in the normal current Emacs from http://emacsformacosx.com/ I'd have recommended Aquamacs until recently, but the builds from link above are both more current and stable generally. For LaTeX, there are many ways to get it such as homebrew; I am quite happy with MacTeX from https://tug.org/mactex/. Note that you might have to configure paths for LaTeX in Emacs, if you start Emacs from the GUI, since changing GUI session environment on Macs is less than obvious. Alternatively: • Configure your path in your user's launchd config so that the whole session has LaTeX in your path • Modify your shell environment and just launch Emacs from the shell. The binary would then be /Applications/Emacs.app/Contents/MacOS/Emacs Cheers, Bernd On 26 March 2015 at 14:18, Chris Willard ch...@meliser.co.uk wrote: Hello All, I am thinking about changing to a Mac from Windows and wanted to check that there are no issues with using org-mode in OS X. I would like to know what version of Emacs people use (e.g. Aquamacs) and also if there are any issues using org-mode on a Mac. For example, I export to PDF frequently so would like to know if I need any other software for this. Many thanks, Chris -- Senior Software Engineer Xaidat GmbH Wickenburggasse 5 8010 Graz Austria / Europe web: http://www.xaidat.com/ phone: +43-676-845023-706 email: bernd.h...@xaidat.com FN 384295s, LG ZRS Graz UID-Nr. ATU67414611
[O] Fold entirely done subtrees on startup?
+STARTUP can show top level headers, all headers, all content or everything. I'd like a way to have all subtrees that are DONE or have no todo-status folded, but have everything TODO* displayed at startup. Is there a way to do that with per-file settings? Cheers, Bernd * “…or with TODO children”, but I can emulate that well enough with giving every path in the trees a status and have org inhibit setting Headers with TODO or unchecked children DONE.
[O] Always use \hyperref for internal Links in PDF export?
Hello Orgmoders, Given a Document: — [[Section 1]] Bla, bla [[Section 2]] The blah blah is [[Section1][covered well above]], so let me just say: [[Section 1]]! — I get: — … The blah blah is \hyperref[Section 1]{covered well above}, so let me just say: \ref{Section 1} … — Is there a any way (without just always writing [[Section 1][Section 1]]) to always get the former behaviour, but just repeating the Title itself if no explicit link text was provided? That is: — … The blah blah is \hyperref[Section 1]{covered well above}, so let me just say: \hyperref[Section 1]{Section 1} … — Cheers, Bernd
Re: [O] Org based websites w/o export
On 19 May 2014 19:58, Ken Mankoff mank...@gmail.com wrote: Jr works by having javascript render the markdown to HTML. That is, you write markdown, upload markdown w/o running a generator, and the generator runs in the browser of the viewer. This is efficient for the server (simpler pages) and author (no need to run a static site generator), but may be globally inefficient for a popular site (many browser doing rendering). I'd phrase this point more strongly: The whole concept of intensive client-side rendering is fashionable, but an eminently bad idea from a number of perspectives. I ran my list past Ken and he encouraged me to post them (thanks), so here goes: 1) UX: Rendering in the browser's rendering engine is always faster than rendering in JS and then in the browser's rendering engine. Speed matters. 2) Engineering (l'art pour l'art): Not caching the most eminently cacheable thing on Earth, the rendering of static web pages, makes baby Dijkstra cry. 3) Economics (egoistical): Search engines are optimized for interpreting and presenting HTML. If you want to be found, have your content in HTML. 4) Economics (global): Electricity ain't free; why spend it many times over even if it's not you doing the spending? 5) Ecology There are impacts to wasting power beyond its monetary price. So, enough with the criticism. How to constructively approach this? If the size difference between HTML and MD makes a difference for your bandwidth cost, maybe consider just precompressing your files offline (this, too, can be done prior to uploading…) and teaching your web server that for files x.html, deliver x.html.gz as a pre compressed stream first if available. Cheers, Bernd
Re: [O] Emacs Mac Port
Hi Alan, On 13 February 2014 13:07, Alan Schmitt alan.schm...@polytechnique.org wrote: I don't know how to make a screencast ... Somewhat off-topic, but just use Quicktime Player: File New Screen Recording. I like to recode the resulting file afterwards using Handbrake, reducing resolution (and stripping the sound track or even color where possible) allows quite tiny files with a good frame rate. Cheers, Bernd -- Senior Software Engineer Xaidat GmbH Wickenburggasse 5 8010 Graz Austria / Europe web: http://www.xaidat.com/ phone: +43-676-845023-706 email: bernd.h...@xaidat.com FN 384295s, LG ZRS Graz UID-Nr. ATU67414611
Re: [O] Can't write accents in R graphics
Hey, The thread's a bit stale, so sorry if I'm beating a dead horse here, On 5 December 2013 20:15, John Hendy jw.he...@gmail.com wrote: Can you do it straight from R? Might be a better place to start? If not, I'd look into that first to avoid googling org and ESS stuff in vain! More concrete: Try using cairo_pdf as your graph output function in R. It can do PDF exports with non-ASCII characters. Caveats: Getting Cairo for R may be some work on Windows from what I've heard. Also I was still on 2.15.3 when I had this working. Cheers, Bernd -- Senior Software Engineer Xaidat GmbH web: http://www.xaidat.com/
Re: [O] Paths including spaces fail the installation: Patch
Hi Achim, On 23 April 2013 18:56, Achim Gratz strom...@nexgo.de wrote: Please put quotes around the definition of prefix: prefix = /Users/bernd.haug/Library/Application Support/Aquamacs Emacs Yes, with quoting the prefix a fresh clone installed cleanly. thanks, but don't bother about supporting me. Huh? I'm not sure where this comes from. It comes entirely from a friendly place – I got the impression that this was a problem only I was having / that you had a mainline-merged general fix anyway, and that I had fixed it already as far as my needs were concerned, so I didn't want to waste your time. Cheers, Bernd
Re: [O] Paths including spaces fail the installation: Patch
Hi Achim, On 22 April 2013 17:47, Achim Gratz strom...@nexgo.de wrote: Bernd Haug writes: Finally got to it; pulled up to current (cf shell output below), appended your snippet to local.mk and did a clean install: You don't need to add this anymore (unless you copied the old definition from default.mk), it is already in mainline Org. But you do need to quote the definition for prefix (most likely). Show the output of make config. = Emacs executable and Installation paths EMACS = /Applications/Aquamacs.app/Contents/MacOS/Aquamacs DESTDIR = ORGCM = dirall ORG_MAKE_DOC= info html pdf lispdir = /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/lisp infodir = /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/info datadir = /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/etc testdir = /var/folders/_4/g9wqkdc513j4nkd12t4d69y8gp/T//tmp-orgtest = Additional files from contrib/lisp = Org version make: Org-mode version 8.0.1 (release_8.0.1-14-g2e6769 = /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/lisp) If this is already done from your perspective though (as it seems), thanks, but don't bother about supporting me. I'm happily using the version I installed back then and I've got no compelling reasons to upgrade. Thanks again, Bernd
Re: [O] Paths including spaces fail the installation: Patch
Hello Achim! Finally got to it; pulled up to current (cf shell output below), appended your snippet to local.mk and did a clean install: On 14 March 2013 07:49, Achim Gratz strom...@nexgo.de wrote: BS-Quoting and Doublequote-ing were the first things I tried: […] Yes I see, that is due to inadvertent double quoting. Try this definition in local.mk (not the extra two single quotes around $(datadir)): --8---cut here---start-8--- # How to generate org-version.el MAKE_ORG_VERSION = $(BATCHL) \ --eval '(load org-compat.el)' \ --eval '(load ../mk/org-fixup.el)' \ --eval '(org-make-org-version $(ORGVERSION) $(GITVERSION) '$(datadir)')' --8---cut here---end---8--- Please test, I'll push the fix if it solves your problem. bernd.haug@sliver:~/Library/Application Support/Aquamacs Emacs/org-mode$ git describe --always --long --dirty release_8.0.1-14-g2e67699 bernd.haug@sliver:~/Library/Application Support/Aquamacs Emacs/org-mode$ make clean install rm -f make -C lisp clean rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc org-install.elc rm -f *.elc make -C doc clean rm -f org *.pdf *.html *_letter.tex org-version.inc \ *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs \ *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps make -C doc install org-version: 8.0.1 (release_8.0.1-14-g2e6769) makeinfo --no-split org.texi -o org if [ ! -d /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/info ]; then install -m 755 -d /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/info; else true; fi ; /bin/sh: line 0: [: too many arguments install -m 644 -p org /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/info usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... make[1]: *** [install] Error 64 make: *** [install-doc] Error 2 bernd.haug@sliver:~/Library/Application Support/Aquamacs Emacs/org-mode$ Problem seems to be, as before, that without proper quoting in the right places *in the shell commands* paths with spaces fall apart into separate arguments. My (tiny and trivial) patch from back in Mar addressed only that and the installation went off without a hitch with it. Of course you're entirely right that the makefiles themselves do not care, and the elisp doesn't have problems with it either. Sorry for the delay and thank you for your consideration, Bernd
[O] Paths including spaces fail the installation: Patch
I have encountered problems installing to paths including spaces. This is annoying for Aquamacs on OS X, where the normal installation location for a custom mode etc. is a directory in ~/Library/Application Support/Aquamacs Emacs. Minimal path quoting changes to the inferior Makefiles made the installation work. I have no location at hand from which I can offer public pulls at the moment, but if anybody wants to commit it for me, the patch follows in-line. Yours, Bernd diff --git a/doc/Makefile b/doc/Makefile index 234ab7e..ca5117e 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -34,9 +34,9 @@ org-version.inc: org.texi @echo @set DATE $(DATE) org-version.inc install: org - if [ ! -d $(DESTDIR)$(infodir) ]; then $(MKDIR) $(DESTDIR)$(infodir); else true; fi ; - $(CP) org $(DESTDIR)$(infodir) - $(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) org + if [ ! -d $(DESTDIR)$(infodir) ]; then $(MKDIR) $(DESTDIR)$(infodir); else true; fi ; + $(CP) org $(DESTDIR)$(infodir) + $(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) org clean: $(RM) org *.pdf *.html *_letter.tex org-version.inc \ @@ -47,7 +47,7 @@ cleanall: clean clean-install: $(RM) $(DESTDIR)$(infodir)/org* - $(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) --remove org + $(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) --remove org .SUFFIXES: .texi .tex .txt _letter.tex diff --git a/etc/Makefile b/etc/Makefile index 8b06158..317bd07 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -13,10 +13,10 @@ all: install: $(ETCDIRS) for dir in $? ; do \ - if [ ! -d $(DESTDIR)$(datadir)/$${dir} ] ; then \ - $(MKDIR) $(DESTDIR)$(datadir)/$${dir} ; \ + if [ ! -d $(DESTDIR)$(datadir)/$${dir} ] ; then \ + $(MKDIR) $(DESTDIR)$(datadir)/$${dir} ; \ fi ; \ - $(CP) $${dir}/* $(DESTDIR)$(datadir)/$${dir} ; \ + $(CP) $${dir}/* $(DESTDIR)$(datadir)/$${dir} ; \ done ; clean: @@ -25,7 +25,7 @@ cleanall: clean-install: $(ETCDIRS) for dir in $? ; do \ - if [ -d $(DESTDIR)$(datadir)/$${dir} ] ; then \ - $(RMR) $(DESTDIR)$(datadir)/$${dir} ; \ + if [ -d $(DESTDIR)$(datadir)/$${dir} ] ; then \ + $(RMR) $(DESTDIR)$(datadir)/$${dir} ; \ fi ; \ done ; diff --git a/lisp/Makefile b/lisp/Makefile index 0e10c23..70af48a 100644 --- a/lisp/Makefile +++ b/lisp/Makefile @@ -77,10 +77,10 @@ $(LISPI): $(LISPV) $(LISPF) @$(MAKE_ORG_INSTALL) install:compile $(LISPF) - if [ ! -d $(DESTDIR)$(lispdir) ] ; then \ - $(MKDIR) $(DESTDIR)$(lispdir) ; \ + if [ ! -d $(DESTDIR)$(lispdir) ] ; then \ + $(MKDIR) $(DESTDIR)$(lispdir) ; \ fi ; - $(CP) $(LISPC) $(LISPF) $(LISPA) $(DESTDIR)$(lispdir) + $(CP) $(LISPC) $(LISPF) $(LISPA) $(DESTDIR)$(lispdir) cleanauto clean cleanall:: $(RM) $(LISPA) $(LISPB) @@ -88,6 +88,6 @@ clean cleanall cleanelc:: $(RM) *.elc clean-install: - if [ -d $(DESTDIR)$(lispdir) ] ; then \ - $(RM) $(DESTDIR)$(lispdir)/org*.el* $(DESTDIR)$(lispdir)/ob*.el* ; \ + if [ -d $(DESTDIR)$(lispdir) ] ; then \ + $(RM) $(DESTDIR)$(lispdir)/org*.el* $(DESTDIR)$(lispdir)/ob*.el* ; \ fi ; -- Senior Software Engineer Xaidat GmbH Wickenburggasse 5 8010 Graz Austria / Europe web: http://www.xaidat.com/ phone: +43-676-845023-706 email: bernd.h...@xaidat.com FN 384295s, LG ZRS Graz UID-Nr. ATU67414611
[O] Bug: ODT export creates invalid document if literal [8.0-pre (release_8.0-pre-58-g9f1765.dirty @ mixed installation! /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/lisp/ and /Use
I am exporting a document to ODT that contains the following text: blah blah blah =blah x blah blah blah...=, blah blah blah bla bla (bla =bla x bla bla bla...= blah). bla blah bla When opening the document in LibreOffice 3.4, I get the following message: Read-Error. Format error discovered in the file in sub-document content.xml at 1837,86(row,col). I unzipped the ODT file and looked to the named location in content.xml: blah bla blah blah text:span text:style-name=OrgCodeblah x bla blah.../text:span, blah bla blah bla bla bla bla (bla text:span text:style-name=OrgCodeblah x bla bla bla.../text:span blah). blah bla bla Obviously, the x would have to be escaped in the XML output if it should be presented as intended, but it is interpreted literally as the == would advise, which causes corruption from the perspective of LibreOffice. I would suggest doing the escaping as it seems much more likely that users want to see such content mono-spaced rather than insert literal ODT markup. Quick note on my config: The dirty source directory only contains the changes from the Makefile-patch I just submitted which allows installation to locations containing space characters in their path. Emacs : GNU Emacs 23.3.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2011-10-25 on braeburn.aquamacs.org - Aquamacs Distribution 2.4 Package: Org-mode version 8.0-pre (release_8.0-pre-58-g9f1765.dirty @ mixed installation! /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/lisp/ and /Users/bernd.haug/Library/Application Support/Aquamacs Emacs/org/info/) current state: == (setq org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent) org-export-latex-tables-centered nil org-babel-load-languages '((sh . t) (emacs-lisp . t) (python . t)) org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-tangle-lang-exts '((python . py) (emacs-lisp . el)) org-export-with-drawers nil org-support-shift-select t org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-classes '((doctooleng \\documentclass{doctooleng} (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) (xaidat \\documentclass{xaidat} (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) (article \\documentclass[11pt]{article} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s})) (report \\documentclass[11pt]{report} (\\part{%s} . \\part*{%s}) (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) (book \\documentclass[11pt]{book} (\\part{%s} . \\part*{%s}) (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) (beamer \\documentclass{beamer} org-beamer-sectioning)) org-export-with-tags 'not-in-toc org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-backends '(ascii html icalendar latex md odt) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-enforce-todo-dependencies t org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp \\Bernd J\\. Haug\\