Re: use-package mistake?

2021-02-05 Thread Lawrence Bottorff
Sorry, this was meant for emacs.stackexchange. On Thu, Feb 4, 2021 at 2:49 PM Lawrence Bottorff wrote: > Each time I call up list-package and update, I get this message after the > updates > > Operation finished. Packages that are no longer needed: 43. Type ‘M-x > package

use-package mistake?

2021-02-04 Thread Lawrence Bottorff
Each time I call up list-package and update, I get this message after the updates Operation finished. Packages that are no longer needed: 43. Type ‘M-x package-autoremove’ to remove them Below is my init.el concerning use-package (require 'package) (setq package-enable-at-startup nil) (setq p

Region-based meta-notes

2021-01-19 Thread Lawrence Bottorff
I've got this * foldl :PROPERTIES:_ Problematic with ~foldr~ is that it recurses out to its full length before performing the given function's task. For example, with #+begin_example foldr (+) list #+end_example ~(+)~ behaves strictly, meaning that both arguments to it must be fully evaluated b

ob-haskell

2021-01-02 Thread Lawrence Bottorff
I recently wimped out of trying to update ob-haskell as an official maintainer, but I'd eventually like to get back to it -- *after *I get some base understanding of what Haskell is (Zeno's paradox-land?) and how the ghci works. Basically, the ghci is what it is -- tautological, but true. And that

Re: Unhealthy Haskell babel

2020-12-10 Thread Lawrence Bottorff
.el > Immanuel > > On Thu, Dec 10, 2020 at 6:21 PM Lawrence Bottorff > wrote: > > > > I see your point, i.e., compiled, multi-file projects are not really > meant for the REPL-dominant world of org-mode babel. Babel's sweet-spot > would be the interpreted world

Re: Unhealthy Haskell babel

2020-12-10 Thread Lawrence Bottorff
cases -- and > even then.. -- but will lead to problems very soon. > Immanuel > > On Thu, Dec 10, 2020 at 4:21 AM Lawrence Bottorff > wrote: > > > > I'm looking into Haskell (latest ghci) again on org-mode. This > > > > #+begin_src haskell :results verbat

Unhealthy Haskell babel

2020-12-09 Thread Lawrence Bottorff
I'm looking into Haskell (latest ghci) again on org-mode. This #+begin_src haskell :results verbatim :exports both :set +m doubleSmallNumber x = if x > 100 then x else x*2 #+end_src works, but still the :set +m is necessary for it to see the whole. But this #+begin_src haskell :results verba

Re: Can't turn off hide-stars

2020-03-27 Thread Lawrence Bottorff
I've found a way to side-step this issue by simply evaluating (setq-default indent-tabs-mode nil). From then on any formatting is just spaces and the shifting doesn't occur. Still, this is odd behavior. On Fri, Mar 27, 2020 at 3:26 PM Lawrence Bottorff wrote: > Changing my them

Re: Can't turn off hide-stars

2020-03-27 Thread Lawrence Bottorff
of leading > asterisks of headings. > > The asterisks being displayed/hidden is controlled by 'org-hide' face. Run > "M-x describe-face org-hide RET" and see what the foreground of that face > is set to. Alternatively, you can try switching to another theme and see if &

Can't turn off hide-stars

2020-03-26 Thread Lawrence Bottorff
I have searched high and low through my init/config and I can't find where orgmode is suppressing the display of leading asterisks of headings. I've got org-hide-leading-stars set to nil -- but it turns itself back on whenever I open an org file. I can start a clean, blank org file (no #+STARTUP hi

Re: Insert PROPERTIES drawer after heading creation

2020-03-11 Thread Lawrence Bottorff
...-TAB. On Wed, Mar 11, 2020 at 10:37 AM Diego Zamboni wrote: > > On Wed, Mar 11, 2020 at 2:14 PM Lawrence Bottorff > wrote: > >> Yes, thanks. That substring was a bad copy. Any insight why the >> (shell-command "uuidgen" t) wasn't working? >> >

Re: Insert PROPERTIES drawer after heading creation

2020-03-11 Thread Lawrence Bottorff
> Note that I also removed the wrapping (substring (format ...)), which > didn't seem to be necessary. > > --Diego > > > On Wed, Mar 11, 2020 at 5:39 AM Lawrence Bottorff > wrote: > >> I want to insert upon creating a heading a PROPERTIES drawer. So far

Insert PROPERTIES drawer after heading creation

2020-03-10 Thread Lawrence Bottorff
I want to insert upon creating a heading a PROPERTIES drawer. So far I have this (defadvice org-insert-heading (after add-id-stuff activate) (template-myid)) (defun template-myid () (insert "\n:PROPERTIES:\n:TIME: " (substring (format "%s" (format-time-string "%Y-%m-%dT%H:%M:%S")))

Re: Turn on org-num-mode in init?

2020-03-10 Thread Lawrence Bottorff
Good. That worked. I just put (require 'org-num) (add-hook 'org-mode-hook #'org-num-mode) inside my use-package org 's (massive) :config On Tue, Mar 10, 2020 at 1:28 AM Eric S Fraga wrote: > On Monday, 9 Mar 2020 at 23:31, Lawrence Bottorff wrote: > > I'v

Turn on org-num-mode in init?

2020-03-09 Thread Lawrence Bottorff
I've tried a few variations of trying to turn on org-num-mode (which now comes standard in org, correct?) in my init, but I keep getting an error buffer upon a fresh startup Error (use-package): org/:config: Cannot activate headline numbering outside Org mode although when I dismiss it with q and

How to tweak org-log-into-file, how to leverage state history.

2020-02-29 Thread Lawrence Bottorff
I've been trying to understand the whole TODO universe, now that I've finally tackled it. The ability to create all the various states (I haven't tried SEQ of state groups yet) on an issue entered as a heading in an org file and then change the status of that heading is marvelous. For example, I've

Re: Customize TODO log drawer

2020-02-28 Thread Lawrence Bottorff
... could the answer be that LOGBOOK is a general drawer and a PROPERTIES drawer two different classes of drawers? That is, PROPERTIES allows key/value fields while LOGBOOK just allows text? On Fri, Feb 28, 2020 at 12:08 PM Lawrence Bottorff wrote: > I've gone to my org-log-int

Customize TODO log drawer

2020-02-28 Thread Lawrence Bottorff
I've gone to my org-log-into-drawer customize menu and it says "Not into a drawer" even though a C-u C-c C-t gets me the org-todo-keyword list, and when I chose TODO, I get an LOGBOOK entry form. Good. This is indeed the behavior I want, i.e., always make a "log entry" upon a TODO choice. However,

Re: Incident tracking

2020-02-28 Thread Lawrence Bottorff
I can see that an "incident" can be seen as a TODO; indeed, anything event can start as a TODO, then move on in status to one of your other org-todo-keyword entries. Question: When I start the TODO process, and then update the status, once or more times, finally, perhaps with DONE, is there a recor

Incident tracking

2020-02-27 Thread Lawrence Bottorff
What would be the best way in the Emacs org-mode world to "keep track" of "incidents" that might happen in, e.g., a factory setting? Let's say a piece of equipment has various things in its life that happen to it: breakdown, warning, maintenance, etc. that you want to keep track of in an org-mode w

Re: Running in-line babel code at auto-insert template file open

2020-02-26 Thread Lawrence Bottorff
I hope to be able to just tackle a problem like this and submit the solution. Hope springs eternal (which Google-Gmail just auto-completed!)... On Mon, Feb 24, 2020 at 9:51 PM Lawrence Bottorff wrote: > Let's say I have a standard org file I want to have created multiple > time

Running in-line babel code at auto-insert template file open

2020-02-24 Thread Lawrence Bottorff
Let's say I have a standard org file I want to have created multiple times. I've created a template file and told Emacs autoinsert where it is. Here's the relevant in my init (use-package autoinsert :ensure t ... :config (define-auto-insert "poolchem.org?$" "poolchem.org")) So in this tem

ob-prolog is sick. . .

2020-02-22 Thread Lawrence Bottorff
. . . can some nice doctor (with elisp skills beyond my laughable ones) make a house call? The repo here has an outstanding *issue* you can read. Also, if you run the .org test file, it hangs after a few of the simpler tests. I think they're related. The original

How to capture export prepended header numbering

2019-12-30 Thread Lawrence Bottorff
Basically, I'd like to know what level each heading of an org file is and in what order they appear. So if my org file looks like this * heading a ** sub-heading a.1 ** sub-heading a.2 *** sub-sub-heading a.2.1 * heading b ** sub-heading b.1 *** sub-sub-heading b.1.1 * heading c And an HTML expor

Turn function into interactive

2019-12-29 Thread Lawrence Bottorff
I've discovered org-outline-level which when in a code block under a given header delivers as expected: * This old level #+BEGIN_SRC emacs-lisp (org-current-level) #+END_SRC #+RESULTS: : 1 Now, how could I turn this into an interactive callable with M-x? My stab in the dark (defun my-insert-lev

Table results doesn't work for dotted lists

2019-12-24 Thread Lawrence Bottorff
I've got this #+begin_src emacs-lisp :results table '(hline (hi) (there) hline) #+end_src #+RESULTS: |---| | hi| | there | |---| but then :results table has no effect on this #+begin_src emacs-lisp :results table '(hline (hi . bye) (here . there) hline) #+end_src #+RESULTS: : (hlin

Re: Properties Drawer versus tags

2019-12-20 Thread Lawrence Bottorff
I might add that a properties/drawer is a sort of "official heading metadata repo," while tags not so much. It would be nice to see (lots of) examples. On Fri, Dec 20, 2019 at 9:18 AM Ken Mankoff wrote: > > On 2019-12-19 at 22:24 -08, Lawrence Bottorff > wrote... >

Properties Drawer versus tags

2019-12-19 Thread Lawrence Bottorff
Very simple, largely philosophical question: When/why use a properties drawer below a heading versus just using tags on the heading? What are the advantages, disadvantages of both? LB

Calling/using named babel code blocks

2019-12-18 Thread Lawrence Bottorff
I thought I understood "metaprogramming," i.e., creating generic code blocks that can be called by any other code block regardless of programming language -- but apparently I don't. I have this #+name: my-random-gen #+header: :var n=0 :var lim=0 #+BEGIN_SRC emacs-lisp (loop repeat n collect (rand

Re: Best way to template a big table

2019-12-12 Thread Lawrence Bottorff
ext23 | | ...| ...| ...| | textN1 | textN2 | textN3 | is probably a better way all around, i.e., "best practice." If any one knows how to get the horizontal lines added in. . . . On Thu, Dec 12, 2019 at 5:29 AM Simon Butler wrote: > Hi > > On 2019-12-12 07:05, Lawrence Bottorff wrote: >

Best way to template a big table

2019-12-11 Thread Lawrence Bottorff
I've got a big table that I would like to create a template for, i.e., the rows and columns and the myriad | and -. Then a key chord would produce it in an org file ready for values to be entered. I've seen the post-9.2 tempo-define-template, but that looks more suited to smaller things. There is E

[O] Endangered Babel exotic species

2019-06-14 Thread Lawrence Bottorff
So I've investigated two of babel's "exotic species," Haskell and Prolog, and I've found them not really working -- Haskell, sort of with an elaborate work-around, Prolog not at all, even though in simple Emacs modes, they're fine. Maybe they should be taken off the list? LB

[O] Prolog: REPL hangs

2019-06-04 Thread Lawrence Bottorff
Have a look at this over at stackoverflow. I'm once again playing the eternal product tester. This time Prolog, and it seems like an org-mode problem. Could be wrong, though. LB

Re: [O] Haskell org-mode problems redux

2019-05-30 Thread Lawrence Bottorff
g executing Haskell code block... org-babel-script-escape: ‘org-babel-script-escape’ expects a string so I add :results output to the #+begin line and it works. Would anyone know what that is about? On Thu, May 30, 2019 at 3:25 PM Bruno Barbier wrote: > > Hi Lawrence, > > > Lawrenc

[O] Haskell org-mode problems redux

2019-05-30 Thread Lawrence Bottorff
I've been trying to get Haskell to work in babel code blocks for a long time. A year or so ago I tried and eventually gave up. I tried again recently . . . same old problems, i.e., the code block is evaluated exclusively by the ghci REPL, which doesn't understand or play well with an org babel code

[O] HTML export of #+RESULTS:

2019-05-20 Thread Lawrence Bottorff
Basically, I'm trying to get my code block :exports both to give me the #+RESULTS: preamble, i.e., not just the results naked. See this for what I've been trying to do/kludge with just CSS. I'm on latest-greate

Re: [O] Parens matching off in babel code block

2019-05-02 Thread Lawrence Bottorff
Well, at least there is a sane explanation. Ironically, I was also about to complain about all my loose ">"s getting flagged. So they are related! Would there be a way to make an exception for < and > inside of actual code forms? Languages need them for "greater than" and "less than". On Thu, May

Re: [O] Parens matching off in babel code block

2019-05-02 Thread Lawrence Bottorff
AM Berry, Charles wrote: > > > > On May 1, 2019, at 7:56 PM, Lawrence Bottorff wrote: > > > > Wondering if you have seen this over at emacs.stackexchange. Very > puzzling why the parens mismatch in a babel emacs-lisp block, but not > anywhere else in Emacs. > >

[O] Parens matching off in babel code block

2019-05-01 Thread Lawrence Bottorff
Wondering if you have seen this over at emacs.stackexchange. Very puzzling why the parens mismatch in a babel emacs-lisp block, but not anywhere else in Emacs. LB

Re: [O] Greek symbol rendering problem in gnuplot

2019-04-30 Thread Lawrence Bottorff
As I understand, the more "up-to-date" 2017 version is not as comprehensive as the 2014 version. I got in contact with Bruce Ravel (2014 author) and he says he's standing by, but I told him to wait to see what the org-mode side can do first about the :session issue. So in general I'm supposing that

Re: [O] Greek symbol rendering problem in gnuplot

2019-04-30 Thread Lawrence Bottorff
I've looked at the gnuplot mode 2014 github site -- and no issues seem to have been addressed by the owner in recent years. Will try to debug myself. On Tue, Apr 30, 2019 at 1:09 AM Fraga, Eric wrote: > Thanks for the long explanation. I am us

Re: [O] Greek symbol rendering problem in gnuplot

2019-04-30 Thread Lawrence Bottorff
The 2014 "gnuplot-mode" has the problem of not rendering the greek symbols when asked to by babel, hence, my switch to "gnuplot-mode" 2017. C-h v gnuplot-program reports gnuplot-program’s value is "/usr/bin/gnuplot" This variable may be risky if used as a file-local variable. Documentation: Not

Re: [O] Greek symbol rendering problem in gnuplot

2019-04-29 Thread Lawrence Bottorff
Yes, Ubuntu 19.04. Latest-greatest everything else pertinent as well. Here is are my subscriptions (setq package-archives '(("ELPA" . "http://tromey.com/elpa/";) ("gnu" . "http://elpa.gnu.org/packages/";) ("melpa" . "https://melpa.org/packages/";) ("org" . "https://orgmode.org/elpa/";))) And

[O] Greek symbol rendering problem in gnuplot

2019-04-28 Thread Lawrence Bottorff
Maybe take a look at this issue, which describes a tortured trek to find a way to get Gnuplot to properly render Π (pi) in an output graphic. Apparently, the gnuplot package is from 2014 and doesn't handle Greek

[O] install confusion

2019-04-22 Thread Lawrence Bottorff
I've got this in my init, which is in an org file with embedded elisp blocks: (use-package org-plus-contrib :defer t :ensure t ) then right after I have (use-package org :ensure t :bind (("C-c a" . org-agenda) ("C-c c" . org-capture) ("C-c l" . org-store-link)

Re: [O] html export entire code block including template?

2019-04-22 Thread Lawrence Bottorff
Just found it here <https://stackoverflow.com/questions/7431167/escaping-org-mode-example-block-inside-of-an-example-block/7462884#7462884> . On Tue, Apr 16, 2019 at 12:08 AM Lawrence Bottorff wrote: > I'm doing this: > > #+begin_example > #+begin_src emacs-lisp :var tabl

[O] html export entire code block including template?

2019-04-15 Thread Lawrence Bottorff
I'm doing this: #+begin_example #+begin_src emacs-lisp :var table=sandbox :exports both (message "%S" table) #+end_src #+end_example to force html export into displaying the entire block, including the code block wrapper. Is there a more elegant way, perhaps in the #+begin line to tell export t

Re: [O] local variables to initialize org buffer?

2019-04-01 Thread Lawrence Bottorff
buffer? On Mon, Apr 1, 2019 at 1:37 AM Eric S Fraga wrote: > On Sunday, 31 Mar 2019 at 21:05, Lawrence Bottorff wrote: > > I'm trying to figure out how to start up slime and do > > org-babel-execute-buffer when I open a certain org-mode file full of Lisp > > source code

Re: [O] local variables to initialize org buffer?

2019-03-31 Thread Lawrence Bottorff
Sure, but how should it be implemented? On Sun, Mar 31, 2019 at 9:33 PM Berry, Charles wrote: > Will `org-babel-load-file' suffice? > > HTH, > > Chuck > > > On Mar 31, 2019, at 7:05 PM, Lawrence Bottorff > wrote: > > > > I'm trying to figure out

[O] local variables to initialize org buffer?

2019-03-31 Thread Lawrence Bottorff
I'm trying to figure out how to start up slime and do org-babel-execute-buffer when I open a certain org-mode file full of Lisp source code blocks. I guess Local Variables: eval: (elisp-function) End: is discouraged. So I looked at in buffer settings

[O] Python with org-mode

2019-03-29 Thread Lawrence Bottorff
I've seen many "start using Python" parades, but what is the best way to use Python with org-mode, i.e., in babel source blocks? I'm on U18.10, which comes with standard 2 (2.7.15+) and 3 (3.6.7). But then I keep hearing about Anaconda. Your opinions, experiences, please. LB

[O] logbook file?

2019-03-26 Thread Lawrence Bottorff
So I can add a logbook entry to my org file with C-c C-z and it goes into a logbook drawer on that file. Is there a way to associate that entry with an external file? That is, can I have all logbook entries automatically be written to, say, a logbook.org file. Or, is there a quick way to simply tan

[O] doi-utils, org-ref-bibtex: separate or included?

2019-03-23 Thread Lawrence Bottorff
I've got this code in my init: (use-package doi-utils :ensure t :after org) (use-package org-ref-bibtex :after org :init (setq org-ref-bibtex-hydra-key-binding "\C-cj")) I'm not sure where I got this code, but it errors out. There is no ELPA for these, correct? What's the best way to install the

[O] MathJax font confusion

2019-03-05 Thread Lawrence Bottorff
I'm trying to get odd behavior in an org-mode HTML export cleared up. (See this .) I've got this table { font-family: monospace; /* font-family:'eulermedium_18'; */ font-size: 1.05em; margin-left:5%; margin-right:auto; margin-top:0.5em;

[O] Manual available?

2019-02-04 Thread Lawrence Bottorff
Is the latest org-mode manual available as an org file? Is there a github for it somewhere? LB

[O] Error in Literal Examples manual?

2019-02-04 Thread Lawrence Bottorff
At the bottom of this is a description of adding a `org-store-link` inside of a babel code block edit called with C-c ' , however, it doesn't seem to work with C-c l , although M-x org-store-line does work. Or am I seeing, doing this wrong? Sorry

[O] (no subject)

2019-02-03 Thread Lawrence Bottorff
At the bottom of this is a description of adding a `org-store-link` inside of a babel code block edit called with C-c ' , however, it doesn't seem to work with C-c l , although M-x org-store-line does work. Or am I seeing, doing this wrong? LB

[O] Definitive answer to org-mode export HTML versus LaTeX

2019-01-29 Thread Lawrence Bottorff
I keep being stymied by the apparent incompatibility of HTML and LaTeX export. Here's what I have in my .org file header: #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [american] #+LATEX_HEADER: \usepackage{tikz} #+LATEX_HEADER: \usepackage{commath} #+LATEX_HEADER: \usepackage{stackengine} #+LaTeX

[O] Easy templates broken with 9.2

2019-01-26 Thread Lawrence Bottorff
It seems my easy templates completion is being ignored. I'm 9.2 (9.2-41-g010a35-elpa ...). I've found a reference or two online but the fix, i.e., running (require 'org-tempo) only produced error messages. The "documentation" doesn't really say exactly what the new format is. Here's a sample of w

[O] Change HTML export metadata

2018-12-17 Thread Lawrence Bottorff
I've got this: Date: 2018-12-17T14:47:18 Author: me Created: 2018-12-17 Mon 14:51 Validate standard "metadata" coming at the end of whatever I html-export. I'm sure I can change this, right? Also, does anyone have a tutorial (or in-depth discussion) of org mode CSS lore for html export? One issu

Re: [O] HTML :exports both problem

2018-11-19 Thread Lawrence Bottorff
zing. Is there a way to toggle that behavior? On Mon, Nov 19, 2018 at 3:16 AM Eric S Fraga wrote: > On Sunday, 18 Nov 2018 at 23:55, Lawrence Bottorff wrote: > > Try this at home: > > [...] > > > Am I missing something? > > I don't have lisp installed (or at least

[O] HTML :exports both problem

2018-11-18 Thread Lawrence Bottorff
Try this at home: #+begin_src lisp :results output :exports both (dotimes (i 4) (format t "~3d " i)) #+end_src #+RESULTS: : 0 1 2 3 #+name: #+begin_src lisp :exports both (defun multabl () (dotimes (x 20) (dotimes (y 20) (format t "~3d " (* (1+ x) (1+ y

[O] Babel SML oddity

2018-11-13 Thread Lawrence Bottorff
I'm following a Coursera course that uses ML. I have SML up and running on Emacs 26.1/orgmode 9.1.14. So in an orgmode buffer I have #+begin_src sml val u = 1; val v = 2; val w = u + v; #+end_src and C-c C-c produces #+RESULTS[8b5...]: : val v = 2 : int while the REPL (*sml*) produces - val u

Re: [O] Library of Babel confusion

2018-04-11 Thread Lawrence Bottorff
&optional FILE) > > All the best, > Tom > > > Lawrence Bottorff writes: > > Thanks for the help. However, one mystery still remains: Why is this >> >> '(org-babel-lob-files (quote ("~/org/worg/library-of-babel.org"))) >> >> in my init.e

Re: [O] Library of Babel confusion

2018-04-10 Thread Lawrence Bottorff
loaded. On Fri, Apr 6, 2018 at 10:38 PM, Berry, Charles wrote: > > > > On Apr 6, 2018, at 4:59 PM, Thomas S. Dye wrote: > > > > [Tom's response covering the main issues deleted] > > > hth, > > Tom > > > > Lawrence Bottorff writes: &g

Re: [O] Library of Babel confusion

2018-04-06 Thread Lawrence Bottorff
form. So again I'm looking at elisp code that is not in the form of a function. So I'm guessing "functions" cannot be #+call'ed, just "headless" elisp code. So what advantage does LOB offer? On Tue, Apr 3, 2018 at 5:39 PM, Berry, Charles wrote: > > >

Re: [O] Library of Babel confusion

2018-04-04 Thread Lawrence Bottorff
'(org-babel-lob-files (quote ("~/org/worg/library-of-babel.org"))) ... was being blown off, i.e., not populating the org-babel-library-of-babel variable. But today org-babel-lob-injest does seem to work, i.e., it did populate org-babel-library-of-babel. I wonder what's up. On Tue

[O] Library of Babel confusion

2018-04-03 Thread Lawrence Bottorff
I've been trying to grok LOB again. So I've cloned the worg git and library-of-babel.el is one of the files. org-babel-lob-injest didn't work, so I customized org-babel-lob-files and inserted .../worg/library-of-babel.el . . . and it did in fact get added to my init.el under the custom-set-variable

[O] tangle versus org-babel-load-file

2018-04-03 Thread Lawrence Bottorff
I'm experimenting with Uncle Dave's config which is using a minimum init.el to launch config.org, which is full of elisp babel source blocks. Here's his relevant launching code: (when (file-readable-p "~/.emacs.d/config.org") (org-babel-load-file (expand-file-name "~/.emacs.d/config.org"))) How

[O] Soft return in footnote text?

2018-03-12 Thread Lawrence Bottorff
I'm getting carried away with a footnote and want to have it be many paragraphs long when I export it to HTML. I can put in latex math formulae, and that breaks things up. But is there a way to simply have separate text paragraph in an org-mode footnote? LB

[O] Suppress table when creating gnuplot on HTML export?

2018-02-27 Thread Lawrence Bottorff
I've got this: #+tblname: mydata | -2 | 0 | | -0.015 | 0 | || | | 0.015 | 1 | | 2 | 1 | ##+begin_src gnuplot :var data=mydata :exports results :file images/gap1.png #+begin_src gnuplot :var data=mydata :results output :file images/gap1.png reset set terminal png size 350,262 s

[O] Exploring picolisp

2018-02-25 Thread Lawrence Bottorff
I'm looking at picolisp -- and wondering how it works, or better, why it doesn't really work work with babel. First problem, I couldn't get any form of picolisp to work in Emacs -- until I stopped starting Emacs with emacsclient -c -a '' which sets up my daemon first. Got abstruse error -- and it

[O] texi to org?

2018-02-18 Thread Lawrence Bottorff
Is there such a thing as a converter from a raw texi file to an org file? I'm experimenting with manual formats and would like to take texi/info files and convert them to org files. I've tried two approaches with pandoc, namely, html to org and text (markdown) to org -- and they've produced org fil

[O] Prompt org-capture for buffer?

2018-02-06 Thread Lawrence Bottorff
I've got this '(org-capture-templates (quote (("a" "Normal add" entry (file "~/org/notes.org") "* %(plainutc)\n%x%?" But it wants to put my captured things into ~/org/notes.org . Is there any way to have it prompt for which buffer to add to -- or even just put it in the active b

Re: [O] Ad-hoc, mix-and-match tag hierarchies?

2018-02-01 Thread Lawrence Bottorff
So a left-to-right listing of (colon-separated) tags after the heading cannot imply a higher-to-lower hierarchical order? So there is no hierarchy unless you create it, e.g., (setq org-tag-alist '((:startgrouptag) ("GTD") (:grouptags)

[O] Ad-hoc, mix-and-match tag hierarchies?

2018-02-01 Thread Lawrence Bottorff
Is it possible to have two or more tags that are "peers," i.e., all equal, not in a hierarchy, be in an ad-hoc, as-needed way be hierarchical? For example, I have the tags *org-mode, lisp, *and *emacs, *and I want to have a header with the tags * my header:emacs:org-mode:lisp: So the above sh

[O] How to set org-tag-alist

2018-01-23 Thread Lawrence Bottorff
This describes a org-tag-alist for setting up globally a list of tags, but I'm not sure how to alter org-tag-alist. I'm used to doing an M-x customize-variable, but there is no org-tag-alist. Later on the page it has this form: (setq org-

Re: [O] "Reference Dump" rant

2017-11-21 Thread Lawrence Bottorff
Yes, Worg is great. If a user is really driven they can scarf up all the various tutorial bits and pieces and begin to have a clue. BTW, where can I get the source for the latest manual? On Tue, Nov 21, 2017 at 9:03 PM, Thomas S. Dye wrote: > > Lawrence Bottorff writes: > > >

Re: [O] "Reference Dump" rant

2017-11-21 Thread Lawrence Bottorff
ons are not uncommon and are certainly welcomed - in fact, > that is one of the nice things about org-mode, the extent to which > community contributions are accepted. > > regards, > > Tim > > Lawrence Bottorff writes: > > > As many might gather from seeing so many o

[O] "Reference Dump" rant

2017-11-21 Thread Lawrence Bottorff
As many might gather from seeing so many of my beginner posts, I'm not exactly a Sheldon Cooper type, i.e., someone who has the A-ha! angel standing by 24/7 with her hand on his shoulder. So today I thought I'd upgrade my knowledge of org-mode tables. So I go to the section of the "manual" on table

Re: [O] Bizarre gnuplot file creation error

2017-11-07 Thread Lawrence Bottorff
Still haven't tracked down the exact steps to reproduce this problem, but it happened again recently -- and starting a new emacs from the command line solved it, i.e., my usual daemon-run emacs seems to be "crudding up" somehow. On Sat, Nov 4, 2017 at 1:05 PM, Lawrence Bottorff w

[O] Bizarre gnuplot file creation error

2017-11-04 Thread Lawrence Bottorff
Trying the babel gnuplot the other day, I had trouble getting the results to C-c C-c to actually materialize in the place I'd given. Taking the example from the org-mode babel gnuplot page, (changing the location): #+begin_src gnuplot :exports both :file omnigraphics/omnig10.png reset set title "

Re: [O] MathJax beyond org-html-mathjax-options?

2017-11-03 Thread Lawrence Bottorff
g MathJax's cancel.js? As you all know I'm not a "developer-class" poster here, so my questions often look dull-witted. Will try the patch once I learn a bit more diff in Emacs lore. . . . On Thu, Nov 2, 2017 at 9:12 AM, Rasmus wrote: > Lawrence Bottorff writes: > >

[O] MathJax beyond org-html-mathjax-options?

2017-10-31 Thread Lawrence Bottorff
I'm trying to get a typical Latex strikethrough with MathJax in an HTML export, i.e., \cancel{thing} puts line through "thing". This tells me how. But I don't know how to include this MathJax markup in an org file for HTML export. If I forego Math

[O] exporting Racket images

2017-10-23 Thread Lawrence Bottorff
I'm using a nice package from a Racket user called MetaPict , however, I don't know how to export the image produced. Here's some Racket code calling MetaPict: #+begin_src scheme :session mainsession :exports both (require racket/draw metapict metapict/graph)

Re: [O] HTML output of gnuplot pic

2017-10-14 Thread Lawrence Bottorff
That did it. Thanks. On Sat, Oct 14, 2017 at 1:58 PM, Nicolas Goaziou wrote: > Lawrence Bottorff writes: > > > I don't get the image displayed -- without manually taking out the > > > > #+RESULTS: line. I'm saying > > > > #+begin_src gnuplot

Re: [O] HTML output of gnuplot pic

2017-10-14 Thread Lawrence Bottorff
g]] . . . does display the plot image: . . . On Sat, Oct 14, 2017 at 1:30 PM, Nicolas Goaziou wrote: > Hello, > > Lawrence Bottorff writes: > > > I'm playing with the tutorial for babel-gnuplot > > <http://orgmode.org/worg/org-contrib/babel/languages/ob-do

[O] HTML output of gnuplot pic

2017-10-14 Thread Lawrence Bottorff
I'm playing with the tutorial for babel-gnuplot , however I keep getting this upon C-c C-c: #+begin_src gnuplot :exports code :file images/test1.png reset set title "Putting it All Together" set xlabel "X" set xrange [-8:8

[O] org-babel-script-escape problem

2017-09-14 Thread Lawrence Bottorff
In a fresh org file I try this: #+begin_src scheme :session mainsession (define (mysquare x) (* x x)) #+end_src and get this: executing Scheme code block... => # : ‘org-babel-script-escape’ expects a string I'm using latest elpa everything (orgmode, geiser) with Racket v6.10.1 as of this morn

Re: [O] Strange latex symbol behavior on html export

2017-09-13 Thread Lawrence Bottorff
Nick Dokos wrote: > Nicolas Goaziou writes: > > > Hello, > > > > Lawrence Bottorff writes: > > > >> Consider this markup: > >> > >> > >> * MATHEMATICS AUXILIARY > >> > >> ** deriving sines and cosines

[O] Strange latex symbol behavior on html export

2017-09-12 Thread Lawrence Bottorff
Consider this markup: * MATHEMATICS AUXILIARY ** deriving sines and cosines #+caption: Right triangle with two $\pi\big/4$ angles. [[file:images/45-45-triangle.png]] $\big/$ If I remove the second $\big/$, the first latex, $\pi\big/4$, in the caption will not properly

[O] Justifying a formula

2017-03-07 Thread Lawrence Bottorff
Here's what I have in a buffer: * This basic pseudo-code tells of an internally-defined variable that holds, /accumulates/ as the recursion drills down: \begin{align*} sumprod(x) \equiv if \; eq(x,NIL) \; then \; 2.list(s,p) \\ else \\ \{let \; z = sumprod(cdr(x)) \\ 2.list(car(z) + car(x)

Re: [O] Babel doesn't like some Racket comments

2017-03-01 Thread Lawrence Bottorff
+end_src it works: Welcome to Racket v6.8. racket@> A (set 1 3 2 4) racket@> On Wed, Mar 1, 2017 at 8:40 AM, Nicolas Goaziou wrote: > Hello, > > Lawrence Bottorff writes: > > > C-c C-c-ing this code > > > > #+begin_src scheme > > (define (foo x) > > ;

[O] Babel doesn't like some Racket comments

2017-02-28 Thread Lawrence Bottorff
C-c C-c-ing this code #+begin_src scheme (define (foo x) ;just add one (+ 1 x)) ; comment #+end_src causes Racket (geiser) to freeze up. Sometimes I see a Code block evaluation complete. geiser-repl--maybe-send: Args out of range: 61, 62 -like message. The culprit is the *; comment *next to

Re: [O] Logbook not working?

2017-02-23 Thread Lawrence Bottorff
Aaaag! I have every confidence that someday I'll stop making a fool of myself to you good people. . . . On Thu, Feb 23, 2017 at 2:55 PM, Nicolas Goaziou wrote: > Hello, > > Lawrence Bottorff writes: > > > I set `debug-on-error` to `t` and went through creating a log

Re: [O] Logbook not working?

2017-02-23 Thread Lawrence Bottorff
n Thu, Feb 23, 2017 at 11:50 AM, Nicolas Goaziou wrote: > Hello, > > Lawrence Bottorff writes: > > > I'm trying to create Logbook entries with C-c C-z -- which has worked > fine > > in the past. But now whenever I try I get > > > > org-back-to-heading:

[O] Logbook not working?

2017-02-23 Thread Lawrence Bottorff
I'm trying to create Logbook entries with C-c C-z -- which has worked fine in the past. But now whenever I try I get org-back-to-heading: Before first headline at position 1151 in buffer current.org . . . i.e., my entry doesn't show up anywhere. What have I inadvertently messed up? LB

[O] Publishing versus normal exporting

2017-02-17 Thread Lawrence Bottorff
I'm looking at this which seems to suggest a difference between "publishing" and normal export (e.g., C-c C-e h o to get an HTML export). The Emacs configuration given here would

[O] :results raw for html export problem

2017-01-30 Thread Lawrence Bottorff
Here's some Lisp in an org file that I export to html #+begin_src lisp :exports both :results raw (write (setf my-array (make-array '(10 (terpri) ; goo.gl/lCcdDU / Function TERPRI, FRESH-LINE (setf (aref my-array 0) 25) (setf (aref my-array 1) 23) (setf (aref my-array 2) 45) (setf (aref my-arr

Re: [O] Babel prolog not working

2017-01-25 Thread Lawrence Bottorff
I did an issue at https://github.com/ljos/ob-prolog. On Wed, Jan 25, 2017 at 9:38 PM, Thomas S. Dye wrote: > Aloha Lawrence, > > Lawrence Bottorff writes: > > > On my original system, as well on a built-from-scratch system, babel > prolog > > won't work for me.

  1   2   3   >