Re: [BUG] Contents of the *Warnings* buffer, which has begun popping up at random intervals

2023-05-13 Thread George Mauer
Not at my computer now, but that looks like a warning I've been getting pretty constantly for a few weeks and have an investigated. I assumed it was coming from org-ai as I just recently added to that to my workflow and use it a lot, but maybe not On Sat, May 13, 2023, 17:22 Tom Davey wrote: >

Re: Interest in an Org video meetup?

2023-04-27 Thread George Mauer
✋ Interested as well On Thu, Apr 27, 2023, 07:43 Dave Marquardt wrote: > Russell Adams writes: > > > Would there be any interest in a monthly 1-2 hour long ad-hoc screen > > sharing and video discussion for Org-mode? > > I'm interested. > > -Dave > > >

Re: A dream?

2023-04-03 Thread George Mauer
Emacs is a complex tool that itself can take a semester or more to get productive in. I know I myself tried for years to move to it and was only able to after learning vim bindings pretty well, and starting to use Spacemacs. Forcing students to use emacs, much less org - especially in this day and

Re: Thoughts on this ob language generator

2023-01-14 Thread George Mauer
t;clojurescript" :npx-arguments "nbb") #+end_src #+begin_src clojurescript (prn (+ 1 2 3)) #+end_src #+RESULTS: : 6 Never pushed anything to MELPA before but will have to take a look at how to do this. On Sat, Jan 14, 2023 at 7:41 PM Tim Cross wrote: > George

Thoughts on this ob language generator

2023-01-13 Thread George Mauer
I had a need the other day to execute some typescript in an org document. Now I know that there's an ob-typescript package but that doesn't quite work the way I want and expects typescript to be installed globally (which runs into a variety of versioning issues). There is a better option

Re: Get the "closest" property value

2022-10-12 Thread George Mauer
workflows for me. On Wed, Oct 12, 2022 at 4:29 AM Ihor Radchenko wrote: > George Mauer writes: > > > If I have a document what looks like the following. What code could I run > > for the ??? to get the property value for "workspace-directory" that is > > closes

Get the "closest" property value

2022-10-08 Thread George Mauer
If I have a document what looks like the following. What code could I run for the ??? to get the property value for "workspace-directory" that is closest in the outline to the location running the code? * Top Level :PROPERTIES: :workspace-directory: /tmp :END: #+begin_src emacs-lisp

Re: Interest in an Org video meetup?

2022-10-07 Thread George Mauer
I would try to join. One thing I always mention when conversations about recording come up is that if you promote recordings as a resource, it is considered good form to have transcription available. I'm pretty sure a community effort like this world be under no ADA obligations (unlike company

Re: Simple but repetitive http links

2022-09-07 Thread George Mauer
Also worth mentioning that revert-buffer is your go to "kill buffer and reopen" command On Wed, Sep 7, 2022, 08:51 Christian Moe wrote: > > Hi, > > Org scans the file for link definitions when you visit it, so when you > type in the link definition in the buffer, Org is not automatically >

Re: Utility of description lists

2022-06-17 Thread George Mauer
It is not quite true that it's just a way of formatting, there is a semantic element to it as well where someone parsing your document programmatically can now know that what you have is a list of terms paired with their descriptions. In fact, when exporting to html you get a description list

Re: Time Based Log Formatting

2022-02-11 Thread George Mauer
If tab doesn't work because tab is bound to a command, you can often insert a literal tab with C-q Tab On Fri, Feb 11, 2022, 14:14 Robert Love wrote: > I use Org Mode to log data while monitoring events. I used YASnippets to > insert time but Org mode flushes every thing left. What I get

call blocks as a function from inside elisp code

2022-01-19 Thread George Mauer
Hi everyone, I know that I can call a source block as a function in a header argument such as :var, inside noweb annotations, or with a #+call: as described here https://orgmode.org/manual/Evaluating-Code-Blocks.html I am interested in going one step further though. I have one emacs-lisp block

Re: Orgdown: negative feedback & attempt of a root-cause analysis

2021-12-01 Thread George Mauer
Thank you for writing all this down Karl. Thank you for your efforts and I truly am sorry for everything you've been put through emotionally. I know very well how a few particularly nasty comments can sap your energy as the brain cycles on them over and over. I hope you come out of this the

Re: "Orgdown", the new name for the syntax of Org-mode

2021-11-28 Thread George Mauer
Agree with Joost. If I remember correctly, the "down" part of markdown was meant as a play on words to indicate that, unlike a proper markup language, markdown has a direction and a value system but no defined standard. Since org is definitely not that why must the waters? Just go for clarity. On

Cascading cookie counts

2021-07-23 Thread George Mauer
* Cascading Checkbox Cookie Counts I would like checkbox cookies to show the total of all cookies beneath them regardless of hierarchy nesting. The code for ~org-update-checkbox-count~ is more complex than I expected so before spending time digging into this, maybe someone here has a tip? **

Re: A requires/provides approach to linking source code blocks

2021-07-13 Thread George Mauer
In implementing an extension you might consider doing it as a generalized form of what I did with ob-racket (https://github.com/togakangaroo/ob-racket ). I think it is best to rely on the import/require/include mechanism of the language you're using. Pretty much all of them support adjacent

Re: Export Org mode files to (gag, barf) MS Office?

2021-06-26 Thread George Mauer
For anyone who has never tried it, I'll add that the open office formats are an absolute beast to export to. I can't say for sure about docx but I've done my time building a PowerPoint exporter (on top of Microsoft provided ooxml libraries even). It is complex enough that I'm not even sure such an

Re: appearance of list as results from evaluating code blocks

2021-06-23 Thread George Mauer
What about :results code The default is a elisp code block so you get syntax coloring On Wed, Jun 23, 2021, 16:22 Rodrigo Morales wrote: > Johannes Brauer writes: > > Johannes Brauer writes: > > > thanks, that works > > While that works, you might be interested in ":results verbatim" instead >

Re: Hiding results using :post

2021-06-07 Thread George Mauer
l Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > > > On Mon, Jun 7, 2021 at 5:21 PM George Mauer wrote: > >> Woah woah. What is the jupyter-python language, John? >>

Re: Hiding results using :post

2021-06-07 Thread George Mauer
Woah woah. What is the jupyter-python language, John? On Mon, Jun 7, 2021, 15:44 John Kitchin wrote: > This is doable with a hook and advice I think. The hook will hide the > results if you use :results hide in the header. > > I had to use the advice to remove the results before hand, so that

Re: plantuml, png and caching

2021-04-15 Thread George Mauer
I would expect it to work. After all, it could be incredibly useful to bump that up to a :header-args:plantuml: property on the heading On Thu, Apr 15, 2021 at 12:48 PM CS Suehs wrote: > Nick, > I had the :cache yes on the same line with #+BEGIN like > #+BEGIN_SRC plantuml :file helloworld.png

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread George Mauer
her formats as needed, and > https://github.com/tecosaur/emacs-everywhere to do it even in other > applications. > > It's not perfect - I still have to type Markdown sometimes, but you > can eventually start losing the ingrained backtick habit :) > > --Diego > > > &g

Using backticks for the inline code delimeter?

2021-03-31 Thread George Mauer
Markdown uses backticks to denote inline code which should get special (typically monospace) formatting, org uses the tilde character. Now I know that org is not markdown, is far more powerful than markdown, and is not (mostly) the same use cases as markdown. But this one use case *does* overlap.

Re: How to get shell source blocks to read my profile?

2021-03-16 Thread George Mauer
can't find anything to that effect in the docs On Tue, Mar 16, 2021, 07:32 Maxim Nikulin wrote: > On 16/03/2021 00:49, George Mauer wrote: > >shell-file-name: "/bin/zsh -i" > > I am afraid, you should be prepared to face some problem accidentally. > The value of this

Re: How to get shell source blocks to read my profile?

2021-03-15 Thread George Mauer
shell (which is zsh in my case) run in interactive mode for all of these * Local Variables :noexport: :PROPERTIES: :VISIBILITY: folded :END: local variables: shell-file-name: "/bin/zsh -i" end: On Sun, Mar 14, 2021 at 11:04 PM Tim Cross wrote: > > comments in-lin

Re: How to get shell source blocks to read my profile?

2021-03-14 Thread George Mauer
there - just for diagnostic and experimentation to help understand when > things are being sourced. You could even dump out the output of 'env' so > that you can see how the environment is being changed as each of these > files executes. > > Yup, thanks. > George Mauer writ

How to get shell source blocks to read my profile?

2021-03-14 Thread George Mauer
I am confused why no matter how I try to run shell commands they seem to be missing variables exported in profiles. I have added 3 variables to various startup scripts - ~./bash-profile~ :: ~export GIM_BASH_PROFILE="yes"~ - ~./bashrc~ :: ~export GIM_BASHRC="yes"~ - ~./zshrc~ :: ~export

noweb expansion when eval and not tangle?

2021-02-19 Thread George Mauer
I would like noweb to expand during eval but *not* tangle. Is this possible? I realize I can achieve the same effect with multiple code blocks but it seems an odd asymmetry to not be able to do this directly. Is it possible and just not documented?

Re: ist here a :post header arg for tangling?

2021-01-04 Thread George Mauer
hasn't changed, meaning that it will not trigger recompile. > The project is private now but if you're interested I can give you access > to it. > What exactly are you trying to do? > Immanuel > > On Fri, Jan 1, 2021 at 2:09 AM George Mauer wrote: > > > > I'd like to run

ist here a :post header arg for tangling?

2020-12-31 Thread George Mauer
I'd like to run some code to post-process files after they are tangled. Is there a header-arg for that?

Re: Emacs as an Org LSP server

2020-12-13 Thread George Mauer
I think maybe you might be thrown off by the word "server"? Lsp is just a standardization of how an editor can do language-specific things. The fact that standardization exists makes the whole thing pluggable by various services. These typically run in a separate process - which is a good idea

Html export custom container with attribute

2020-12-12 Thread George Mauer
I know I can have a headline render to a custom container during export to html with a property eg HTML_CONTAINER: details But what If I want an attribute to set the state? Specifically I want the container to be `` in some situation and just plain `` in some others. What are my options? Thanks

Why are some headings html exported as lists while others aren’t?

2020-12-08 Thread George Mauer
I am practicing with org->html conversion by trying to export an html resume. I have the following * Resume ** About :PROPERTIES: :HTML_CONTAINER: header :END: *** George Mauer :PROPERTIES: :HTML_CONTAINER: h1 :END: *** Contact :PROPERTIES: :HTML_CONTAINER: arti

Re: How to evaluate source code while in the edit buffer?

2020-12-04 Thread George Mauer
+1 to this question. I have the exact same annoyance (would also be nice to do some threading so it doesn't lock up emacs for a few seconds) On Fri, Dec 4, 2020 at 2:28 PM Pankaj Jangid wrote: > Mirko Vukovic writes: > > > My current workflow is > > > >1. Enter edit buffer (C-c ') > >

Re: Remembrance Agents

2020-11-28 Thread George Mauer
As far as I know the only thing remotely like that is the org-roam buffer when you are in a file managed by org-roam. This would be simply a linkable list of other roam notes which reference the currently viewed note So not exactly what you're looking for I suspect but a similarish concept On

Re: How to get a block’s contents by name

2020-11-27 Thread George Mauer
Well that pains me on a software-engineer-aip-design level but that works! Thanks a lot. On Fri, Nov 27, 2020 at 8:22 PM Kyle Meyer wrote: > George Mauer writes: > > > I'm trying to figure out how I could fetch the contents of another block > by > > name from an elisp scr

How to get a block’s contents by name

2020-11-27 Thread George Mauer
I'm trying to figure out how I could fetch the contents of another block by name from an elisp script I've seen `org-sbe` but I just want to get the block contents, (ideally with noweb and vars filled in - just as it would be tangled if we were to tangle it) How do I do that?

Cannot load om while trying to load org

2020-10-25 Thread George Mauer
This might be a spacemacs-specific error, but maybe people here can help me out? I am getting the following error on org load > (file-missing "Cannot open load file" "No such file or directory" "om") (full stacktrace below) Indeed, I get this: > (require 'om) > *** Eval error *** Cannot open

Control where files are emitted during block eval

2020-09-16 Thread George Mauer
I would like to create a playground.org file inside my node project where I will put bits of code that I'm playing with during development. The problem is that when I actually evaluate a source block it gets written into a temporary location that I do not control - I therefore cannot `require` my

Re: Can you automatically noweb include?

2020-08-08 Thread George Mauer
For what its worth, I maintain (well maintain is a big word when I'm also probably the only person to use it) this fork of xchrishawk/ob-racket: https://github.com/togakangaroo/ob-racket It seems to have more features than the wallyqs one supporting :var headers. I can look at how prologue

Re: Can you automatically noweb include?

2020-08-07 Thread George Mauer
eader args org > has detected for a source block. Misspelled words sometimes wreak havoc and > invisible characters can cause real pain. > >>>> > >>>> > >>>> Also, it helps to use C-c C-v C-v to to see the expanded code block. > When I do this with

Can you automatically noweb include?

2020-08-05 Thread George Mauer
Use case: I'm using ob-racket but this would apply just as well to a few other workflows I have with python or js. I would like to write a helper function in a src block and then automatically have access to it in other src blocks further down the

Updates to ob-racket mode, code review request

2020-07-09 Thread George Mauer
I'm a big fan of using org mode to learn languages and have been using it for Racket (sorry Dr Racket, I just love emacs too much). It's been mostly fine and I've made a few patches to the [`ob-racket`]( https://github.com/xchrishawk/ob-racket) I've been using. Recently I've started to move into

Get generators working in an src block?

2020-07-04 Thread George Mauer
I prefer to use source blocks for pretty much all my language learning. I am trying to figure out generators in emacs-lisp but can't seem to run it in a block. I have ``` #+begin_src emacs-lisp :results output (setq lexical-binding t) (require 'generator) (iter-defun

Bug: Export to html not working [9.3.7 (9.3.7-2-g706970-elpaplus @ /Users/gmauer/.emacs.d/elpa/develop/org-plus-contrib-20200608/)]

2020-06-12 Thread George Mauer
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: Get Grades Done: the joys of Org's simple power

2020-06-10 Thread George Mauer
You know...I believe some people have gotten emacs running in browser... You could do it by compiling it to wasm. So in theory you could create a completely in-browser emacs which is optimized primarily for org mode usage. Would be kind of an awesome thing for someone to tackle as it would

How to supply multiples of a custom src block header arg

2020-05-31 Thread George Mauer
It would seem that `:var` in src blocks gets special treatment. I am hacking on ob-racket trying to add the ability to require from a header (the `:results value` mode wraps everything in a `let` so you need something special to put requires at the top level). I do this ``` #+begin_src racket

How to both export html and show the code?

2020-05-27 Thread George Mauer
I would like to both render html and show a source block for the rendered html (I am aware of ob-browser, but I want this to be dynamic html content, not an image) I would have thought the following would work, but noweb returns an empty string Well, this is solvable with css is it not?

How to get all headings from current location up to the root

2020-04-11 Thread George Mauer
I feel silly that I can’t figure this out but how do I get the current heading, its parent, its parent parent, etc via elisp?

Improving Org Mode for VSCode - Thinking Aloud

2020-04-01 Thread George Mauer
With VSCode becoming ever-popular it seems like there might be some value in getting org mode working there simply as a way of promoting org as an excellent literate coding notebook. VSCode already has a halfway decent org-mode but it doesn’t support anything from Babel. I’m trying to think of

results block doesn't get replaced when doing :results raw

2020-03-10 Thread George Mauer
I've seen this happening a lot in a variety of modes. When I do `:results raw`, on subsequent evaluations, rather than replacing the results block, it gets appended to. This is almost never what I want. I remember seeing some use of `:results raw replace` in some manual or another but that never

Re: Powershell scripting with org-babel

2020-02-10 Thread George Mauer
> Micro$loth WindBlows is a computer virus Well that's mature and appropriate. I recently did an implementation of `ob-pwsh` for supporting powershell core (it assumes there’s a pwsh command available on PATH though thats configurable with `org-babel-command:pws`). Here’s the link

Have :var reference a value

2019-12-08 Thread George Mauer
I'm playing around with learning racket in an org buffer and I have a bunch of blocks that look like this #+begin_src racket :var value="abbracadaabra" ...do stuff with value... #+end_src #+begin_src racket :var value="abbracadaabra" ...do other stuff with value... #+end_src

Re: “Literate” python?

2019-11-29 Thread George Mauer
I've used noweb references to actually assemble what will be tangled all at once. See how I did it here . The reason why the "incorrect" block is outdented is that tangle automatically tries to guess indentation level.

Re: Org export to HTML with encrypted information ??

2019-11-29 Thread George Mauer
Basic "I'm not too worried about it" level of security: stick it on a webserver using .htaccess to demand a password. Make that password halfway decent. Better option: export to PDF by either exporting to HTML or latex and then using that system's PDF export. Keep both PDF and original in a