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
;; add the paths for MacTex and and ocaml on MacOS standard installs | |
(setenv "PATH" | |
(concat | |
"/usr/texbin:" | |
"/usr/local/bin:" | |
(getenv "PATH"))) | |
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
//:n Normal way to define a function | |
f = { | i | i.squared } | |
f ! 5 | |
[ 0, 1, 4, 9, 16 ] | |
//:p Partial application |
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
;; Note: you need to create the ~/tmp directory in your home folder for this to work: | |
(defun org-agenda-make-timeline-for-tree () | |
"make a timeline view in agenda for current tree" | |
(interactive) | |
(org-copy-subtree) | |
(find-file "~/tmp/agenda_tmp.org") | |
(beginning-of-buffer) | |
(let ((beg (point))) (end-of-buffer) (delete-region beg (point))) | |
(org-paste-subtree) |
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
;; This is the .emacs file that should reside in your home directory ~/ with the name .emacs: | |
;; ~/.emacs | |
;; load general configuration | |
(load-file "~/Dropbox/notes/config/startup.el") | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; FOLLOWING IS USER SPECIFIC | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
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
# Custom prompt for shell: | |
PS1="\[\033[0;36m\][\$(date +%H%M)][\u:\W]$\[\033[0;32m\] " |
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
//:! boot+open scope | |
Server.default = Server.internal; | |
if (Server.default.serverRunning.not) { | |
Server.default.waitForBoot({ | |
Server.default.scope; | |
}); | |
}; | |
//:a first load a bigger sample to play with: |
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
;; Settings from March 5 2011 onwards: | |
;; TODO states and keys: | |
(setq org-todo-keywords | |
'( | |
(sequence "TODO(t)" "|" "DONE(d)" "CANCELLED(c)") | |
;; (sequence "TODO(t)" "STARTED(s)" "WAITING(w)" "APPT(a)" "EVT(e)" "TRAVEL(v)" "CLASS(c)" | |
;; "|" "DONE(D)" "CANCELLED(C)" "DEFERRED(F)") | |
;; (sequence "DELEGATED(l)" "FOLLOWUP(p)") |
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
;; Settings from March 5 2011 onwards: | |
;; TODO states and keys: | |
(setq org-todo-keywords | |
'( | |
(sequence "TODO(t)" "|" "DONE(d)" "CANCELLED(c)") | |
;; (sequence "TODO(t)" "STARTED(s)" "WAITING(w)" "APPT(a)" "EVT(e)" "TRAVEL(v)" "CLASS(c)" | |
;; "|" "DONE(D)" "CANCELLED(C)" "DEFERRED(F)") | |
;; (sequence "DELEGATED(l)" "FOLLOWUP(p)") |
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
(require 'org-publish) | |
(setq org-publish-project-alist | |
'( | |
("org-files-publish-local" | |
:org-publish-use-timestamps-flag nil | |
:base-directory "/Users/iani/Dropbox/sites/orgFiles/" | |
:base-extension "org" | |
:publishing-directory "/Users/iani/Dropbox/sites/htmlFiles" | |
:section-numbers nil | |
:table-of-contents nil |
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
;;======== Publish setup ========== | |
;; Shortcuts | |
;; 1) Open index.org file | |
(defun open-index-org () | |
"Open index.org file for website rsync" | |
(interactive) | |
(find-file "~/Dropbox/sites/orgFiles/index.org")) | |
(global-set-key (kbd "C-x M-w") 'open-index-org) |
OlderNewer