Code-fenced source blocks (default behavior)
tags: src-block
Description/Summary
The source blocks are code-fenced by default. Here are few variables that you might like to change in the local.mk: prefix: Org installation directory prefix = /dir/where/you/want/to/install/org # Default: /usr/share The .el files will go to $(prefix)/emacs/site-lisp/org by default. If you’d like to change that, you can tweak the lispdir variable. infodir: Org Info installation directory. I like to keep the Info file for development version of Org in a separate directory.
Content
The source blocks are code-fenced by default.
Here are few variables that you might like to change in the local.mk
:
-
prefix
: Org installation directoryprefix = /dir/where/you/want/to/install/org # Default: /usr/share
The
.el
files will go to$(prefix)/emacs/site-lisp/org
by default. If you’d like to change that, you can tweak thelispdir
variable. -
infodir
: Org Info installation directory. I like to keep the Info file for development version of Org in a separate directory.infodir = $(prefix)/org/info # Default: $(prefix)/info
-
ORG_MAKE_DOC
: Types of Org documentation you’d like to build by default.# Define below you only need info documentation, the default includes html and pdf ORG_MAKE_DOC = info pdf card # html
-
ORG_ADD_CONTRIB
: Packages from thecontrib/
directory that you’d like to build along with Org. Below are the ones on my must-have list.# Define if you want to include some (or all) files from contrib/lisp # just the filename please (no path prefix, no .el suffix), maybe with globbing # org-eldoc - Headline breadcrumb trail in minibuffer # ox-extra - Allow ignoring just the heading, but still export the body of those headings # org-mime - Convert org buffer to htmlized format for email ORG_ADD_CONTRIB = org-eldoc ox-extra org-mime
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Code-fenced source blocks (default behavior)" | |
Title | "Code-fenced source blocks (default behavior)" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://hugo-sandbox.netlify.com/posts/code-fenced-src-blocks-default/" | |
RelPermalink | "/posts/code-fenced-src-blocks-default/" | |
Data |
| |
NextPage | Source block without list syntax in a list | |
PrevPage | Don't Use Org Code markup for kbd tag | |
NextInSection | Source block without list syntax in a list | |
PrevInSection | Don't Use Org Code markup for kbd tag |
Page Params (Debug)
maps.Params{"date":time.Date(2017, time.July, 31, 0, 0, 0, 0, time.UTC), "draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "publishdate":time.Date(2017, time.July, 31, 0, 0, 0, 0, time.UTC), "tags":[]string{"src-block"}, "title":"Code-fenced source blocks (default behavior)"} (type:maps.Params) |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "c910d1a1056172fd1dc60aedf0a78586" |
BaseFileName | "code-fenced-src-blocks-default" |
TranslationBaseName | "code-fenced-src-blocks-default" |
Lang | "en" |
Section | "posts" |
LogicalName | "code-fenced-src-blocks-default.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/code-fenced-src-blocks-default.md" |