This is how. It really is that simple.
Category: Link
Why Friends?
Another reason why…
In regards to an injury that may prevent the lead-singer of a rock band from ever playing guitar again, that singer relays what his friends (band mates) said:
As I write this, it is not clear that I will ever play guitar again. The band have reminded me that neither they nor western civilization are depending on this.
There are so many things woven into that. Painful and pleasant things especially. The love and kindness is quite apparent and sweet, and subtle, too.
The Emacs Widget Library
All Emacs Users Should Probably Run auto-compile
Pose the question “Is there ever a time when Emacs users should be running out-of-date bytecode instead of the up-to-date bytecode or lisp?” to yourself.
All Emacs users should probably run auto-compile.
Using Eshell for su and Remembering Your Password
Eshell can be used for su
and will quite happily remember your password according to this answer.
Expanding and Using Abbreviations in Emacs
A defined abbrev is a word which expands, if you insert it, into some different text.
They are really simple and really helpful if you like this kind of thing. If you grew up hacking on Java, then you surely already use this in IntelliJ IDEA!
Here is a nice post on how to choose and define abbrevs based upon actual usage.
Using Units in Calc with Emacs
Calc is an advanced desk calculator and mathematical tool written by Dave Gillespie that runs as part of the GNU Emacs environment.
One special interpretation of algebraic formulas is as numbers with units. For example, the formula
5 m / s^2
can be read “five meters per second squared.”
Of course it can!
emacs-refactor: A Generic Refactoring Tool for Emacs
Emacs Refactor (EMR) provides language-specific refactoring support for Emacs. It has a simple declarative interface for easy extension.
People who are really serious about software
People who are really serious about software should make their own hardware.
— Alan Kay
Easily check src block correctness in org-mode
Thank you Nicolas Goaziou, for the beginnings of an org-lint
. The goal here was to:
- Report an error if there is a source block without a language
specified - Report an error if there is a source block with a language specified
that is not present in `org-babel-load-languages’
And, it does.
(defun gcr/src-block-check ()
(interactive)
(org-element-map (org-element-parse-buffer 'element) 'src-block
(lambda (src-block)
(let ((language (org-element-property :language src-block)))
(cond ((null language)
(error "Missing language at position %d"
(org-element-property :post-affiliated src-block)))
((not (assoc-string language org-babel-load-languages))
(error "Unknown language at position %d"
(org-element-property :post-affiliated src-block)))))))
(message "Source blocks checked in %s." (buffer-name (buffer-base-buffer))))
Addendum: 2015-02-05
Sebastien Vauban just posted his improved version to:
– “Check as well for the language of inline code blocks,”
– “Report the line number instead of the char position.”
(defun org-src-block-check ()
(interactive)
(org-element-map (org-element-parse-buffer)
'(src-block inline-src-block)
(lambda (sb)
(let ((language (org-element-property :language sb)))
(cond ((null language)
(error "Missing language at line %d in %s"
(org-current-line
(org-element-property :post-affiliated sb))
(buffer-name)))
((not (assoc-string language org-babel-load-languages))
(error "Unknown language `%s' at line %d in `%s'"
language
(org-current-line
(org-element-property :post-affiliated sb))
(buffer-name)))))))
(message "Source blocks checked in %s." (buffer-name (buffer-base-buffer))))
Not seeing this post on the web yet so no link.