user2699
  • Member for 7 years, 1 month
  • Last seen more than 1 year ago
Python org-mode source block output is always ': None'
Accepted answer
23 votes

This is a peculiarity of how babel handles some languages. This gives some detail on python, and a complete list of options is available here. There are quite a few useful ones. Basically, depending ...

View answer
How to recursively search / grep file contents in a directory / subdirectories in Emacs?
19 votes

Well, since the original question doesn't mention rgrep, I'll go ahead and point it out here. This is the simplest option already built into Emacs, and I've found it to be more than sufficient for ...

View answer
do not keep org-agenda-files open after generating agenda
Accepted answer
12 votes

You want org-agenda-exit, conveniently bound to x by default in the agenda view Like `org-agenda-Quit', but kill any buffers that were created by the agenda. Org buffers visited directly by the ...

View answer
Make org-mode export to Beamer keep temporary files out of the current directory
7 votes

I came up with this recently to solve the problem of export cluttering the current directory, although it is not the solution asked for, I think it belongs here, plus it fixes it for any files org-...

View answer
How to convert lines to an org-mode checklist?
6 votes

Using search and replace: M-%Lec Enter - [ ] Lec Enter Note that there are spaces around the checkbox, although they don't show up well here.

View answer
How to replace multiple newlines for single one in whole file?
Accepted answer
5 votes

Use C-M-% to run query-replace-regexp. This works similarly to query-replace in db48x's answer, but allows for a regular expression. Using ^ + as input (^ matches end of line, followed by one or ...

View answer
Exporting tables to html with fixed header when scrolling
3 votes

This isn't a question about emacs behavior as much as it is about html and css. Org mode adds several custom css classes, and these as well as standard css classes can be modified (see http://orgmode....

View answer
Creating a menu from file / directory structure upon html export
3 votes

HTML/css files can be included using #+html_head:. This gets rather messy, if you have a significant amount of customization, so these can be put in a separate file and included with #+setupfile:. ...

View answer
Radio targets in external org mode file, for glossary application
3 votes

No, What you want probably isn't possible without some extreme customization. However, Org once again surprises me with how well the default behavior works, included files with links are treated the ...

View answer
Returning multiple files from src block in babel
2 votes

This is a solution for python, using noweb syntax. It saves all open matplotlib figures, but the idea can be extended easily. First off, make sure noweb is enabled in settings. Then, define a ...

View answer
how to automatically add org-emphasis properties to list titles?
Accepted answer
2 votes

Org provides a variety of hooks to modify text on export. So, re-using your regular expression and org's italic emphasis, one way would be (add-hook 'org-export-before-parsing-hook (lambda (backend)...

View answer
Latex symbols in org mode buffer
Accepted answer
2 votes

There's a couple questions you asked, but I'll cover what I can. Org translates some names beginning with \ into "prettified" versions, as defined in the variable org-entities, and org-entities-user. ...

View answer
Why does font-lock for comment work in cpp, but not in c?
Accepted answer
2 votes

The highlighting used is font-lock-doc-face, as the comment begins with ** and emacs recognizes this as javadoc. As you noted, using three stars, ore only one, will cause it to be treated as a ...

View answer
Query replace and commenting out
1 votes

I think, for what you are doing, the comment by Tobias provides a superior solution. And this question gives quite a few options for commenting out chunks of code. That said, I'll assume this is an ...

View answer
How to delete all instances of a character in a bunch of files?
1 votes

From your question, I'll assume you already can run a macro in all the files, if not, a handy trick is to create a list of files in one buffer, and create a macro that opens an item in the list and ...

View answer
Possible to Set a Frozen Row in Org-Mode Table?
Accepted answer
1 votes

This question on stackoverflow has two suggestions, including using elisp to set the header-line-format to the first line of the table. It also suggests splitting the window horizontally and keeping ...

View answer
Recognize template filename extension?
1 votes

The normal procedure for specifying file extensions works here, (add-to-list 'auto-mode-alist '("\\.ext.template" . ext-mode)) Just add a line like this for each mode you're interested in. To speed ...

View answer
How to sort files by type in ido
Accepted answer
1 votes

This code on the emacswiki allows a custom sort order, based on modification time. I've modified it to sort based on file extensions in ido-file-extensions-order. ;; sort ido filelist by extension ...

View answer
Compile Matlab Code
0 votes

If matlab-mode isn't installed, by default .m files are loaded in octave mode. If you aren't familiar with octave, it can run most matlab code. (Functions from some of the toolboxes aren't ...

View answer
Exporting org mode includes as latex lstinputlisting, or equivalent
Accepted answer
0 votes

Using the link filter on org export, this inserts the linked files contents (for .c files) as a src block. At the moment, it only seems to work when exporting to text. If anyone knows how to fix ...

View answer
Changing or adding compiling options in cc-mode
0 votes

The manual has a very useful entry on this, with an example of setting it based on the current file. (use Ctrl-h v compile-command) Sometimes it is useful for files to supply local values for this ...

View answer
Linking to c++ libraries in babel code block
Accepted answer
0 votes

First off, it's not necessary to use the elisp code included. The flags property lets compiler flags be passed, :flags "-lboost_system -std=c++0x" Unfortunately, due to the order the flags are ...

View answer
How can I escape the * in org-mode to prevent bold fontification
-1 votes

This is controlled by the variable org-emphasis-alist, and can be easily modified. Put point over bold text, use command what-cursor-position C-u C-x = to find the face, note that it has property ...

View answer
How can I insert a new top level TODO below the current subtree in org-mode without moving the cursor?
-1 votes

Here's a simple function to do something similar. (defun test () (point-to-register 'p) (search-forward-regexp "^\\* ") (org-beginning-of-line) (insert "* ") (register-to-point 'p))

View answer