These aren’t all dependencies, but only the ones which isn’t loaded by my usual init-file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.org-brain-entry { | |
border-radius: 25px; | |
background: #73ad21; | |
padding: 20px; | |
padding-top: 7px; | |
margin: 10px; | |
} | |
.org-brain-entry h1 { | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function replaceStringAndSetColor(body, str, replacement, color) { | |
var foundElement = body.findText(str); | |
while (foundElement != null) { | |
var foundText = foundElement.getElement().asText(); | |
var start = foundElement.getStartOffset(); | |
var end = foundElement.getEndOffsetInclusive(); | |
foundText.setForegroundColor(start, end, color); | |
foundElement = body.findText(str, foundElement); | |
} | |
body.replaceText(str, replacement); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;* Helper functions | |
;; Taken from http://endlessparentheses.com/emacs-narrow-or-widen-dwim.html | |
(defun narrow-or-widen-dwim (p) | |
"Widen if buffer is narrowed, narrow-dwim otherwise. | |
Dwim means: region, org-src-block, org-subtree, or | |
defun, whichever applies first. Narrowing to | |
org-src-block actually calls `org-edit-src-code'. | |
With prefix P, don't widen, just narrow even if buffer |