How does Emacs ORG mode work? [closed] - emacs

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am not too familiar with emacs lisp. Before I dig in and try learning it blind, I was hoping someone could give me a high level overview of how Emacs org mode work (or even emacs itself).
What I don't understand is how is it keeping track of things like headers, todos etc. How does it markup the text? Does it use something like html and when you make a header like * HEADER. It wraps it in some tag to know to change it's color? Or is it simply doing syntax highlighting like it would when coding. Just instead of when it sees a def when it sees a * and some text it changes the color?
Also the commands for movement, changing heading sizes, deadlines.

How does org mode keep track of things?
Just imagine that each time that you call agenda, org-mode "compiles"
all your org files, just like gcc would compile your source tree.
The highlighting
This is done in the same way as for source code highlighting,
i.e with regexps.
The commands you can learn either from http://orgmode.org/
or from info org.
Also I've found http://doc.norang.ca/org-mode.html very useful
to get a feel of a full workflow with org-mode.

Related

Anyone know how this feature done (magnifying text)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I saw this feature in many children apps where the word magnified when the reader read it. i want to know how it was achieved in swift here is an example:
https://youtu.be/Hv0In39r2so
I have no idea what I've to seach for to learn about it
It's hard to be sure. in the example you linked it looks like it's drawing a highlighing rectangle with a drop shadow behind the text rather than magnifying it.
You could use attributed strings (NSAttributedString) to highlight each word in bold, for example. I'm not sure how you would synchronize the highlighting with the spoken text however. You might need to create an array of time indexes for the time when the audio begins speaking each word in the text, along with a range for each word to be highlighted. You could then apply bolding (or other styling changes) to one word at a time as each time index passes.
If you wanted to use a highlighting box as in the video you'd probably have to use CoreText. This link should get you started, but be warned that CoreText is complicated. It is not a beginner framework.

How to export full or partial content of an org file on demand [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I wrote some notes on some papers I've read in an Emacs org file so that I can recall what's in those papers by simply walk through my notes. However, for some reasons, I need to print only parts of the notes (I export org file to LaTeX, and it print the pdf file). Of course I can make a replication of that file and delete all the contents I don't need, but I want to know if it is possible to keep writing notes on that file while still being able to print only parts of them in the future. These parts are not continuous. What I imagine is like an #ifndef in C.
Thanks in advance.
org-mode supports selective export through tags. If you have one or more subtrees in your .org file that are tagged with :export:, the org-mode exporter will include only those in the exported file. To add tags to a subtree, press C-c C-c anywhere on its headline, enter one or more tags (separated by :) and press RET.
For any file that has a number of subtrees tagged for export you can instruct org-mode to export everything by adding the following in-buffer setting to the top of your .org file:
#+EXCLUDE_TAGS: export
You do not have to remove the :export: tags.
You can also highlight (Mark Set) what you want to export, C-c C-e C-s then how you want to export (html, LaTeX, etc.

How to get scheme working in emacs [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to learn scheme using 'Teach yourself scheme in fixnum days' in order to customize reports generated by GnuCash. I am using a windows computer. When I type M-X run-scheme in emacs the response I get is 'Searching for program: permission denied, scheme'. I have done some googling and found that I should put some info in a .emacs file (I am pretty sure this does not exist yet) at location: C:\Users\Steve\AppData\Roaming. The instruction was to add some lines including (setq scheme-program-name "scm") where "scm" is replaced by the name of the scheme interpreter in my installation of emacs.
I have not been able to find the name of my scheme interpreter and also I am very unsure about the whole procedure being new to emacs and scheme. Any specific and / or general guidance here would be very much appreciated, Steve
You computer probably does not come with a Scheme program; thus, you'll need to install one. Do a Web Search; plenty of Scheme implementations for Windows. Once you install it just use it outside of Emacs. That is, take it step by step - get some familiarity with Scheme, then get some experience with Emacs, then combine the two.
Ooh, let me add to that; I believe that Gnucash uses Guile, the GNU scheme implementation. That's the one you're probably interested in.

Multiple tooltip input suggestions for Matlab function [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I notice on built in Matlab functions there can be multiple lines of possible input configurations like this
as opposed to just
I have to assume they use something akin to inputParser with the use of varargin, but I have been unsuccessful in trying to replicate this functionality. I would like to have the ability to do this but I'm starting to get the feeling this is only something you can do with built in functions.
Somethings that I have thought of or tried are:
Parsing of the help doc (unsuccessful)
Information in a separate file
Creating the same functions for multiple classes (unsuccessful)
Creating a fully functioning inputParser (unsuccessful)
Has anyone been able to do this?
I have built a similar tool in the past that works quite well. Unfortunately it's a proprietary in-house tool so I can't share the actual tool. However I can tell you that after investigating several options (similar to those you listed) we decided to use a special syntax for our help comments (similar to Markdown or restructuredText) that supports the declaration of syntax variants.
The information from the help texts is then parsed by the tool and can be displayed in different manners (e.g. by shadowing the original doc command with a custom one).
Regarding the actual pop-up menu you may try to dig into the internals of the command window. Yair Altman has documented many unofficial ways to enhance the MATLAB GUI on his wonderful blog. For example, here's a post that describes how to add tab-completion to custom commands.

Looking for an example of a complex text editor using SWT's StyledText [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I need to write a text editor which can merge arbitrary text styles from several sources (in my case: spell checker, style hints like repeated words, links and other markup) using SWT StyledText. I examined the the standard ways to do it:
I could install a modify listener and create the styles for the whole text for each modification. That's pretty slow but accurate.
I could use a LineStyleListener. This means I'll have to redraw the text myself (for example in the case of repeated words because some of them will be outside the current edit range) plus the editor doesn't cache the styles, so this API gets called much more often then one would expect.
I could use a background reconciler like the IDE does. This means the styling lags behind the edits which is bad from a user perspective.
The icing of the cake is that I need hierarchical styles, so I have to reimplement the StyleRange API.
Has anyone seen a better solution? Can someone direct me to some examples which do more than highlight keywords?
I used this example as a starting point for an editor which got fairly advanced. It helped me to understand multi-line styling, and implemenent a reg-ex based styling engine for my editor.
The StyleRange API doesn't really provide a way of doing intersections like merging style 1 which goes from index 1 to index 20 and style 2 ranging from 10 to 14. Something like this.
If this is what you mean with 'hierarchical styles', there's a solution in JFace: org.eclipse.jface.text.TextPresentation
You can add all your styles with mergeStyleRange(.), and use getAllStyleRangeIterator() to get the result. Very useful.