Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiegley committed Feb 29, 2008
1 parent 338b498 commit 0e4e310
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 227 deletions.
27 changes: 17 additions & 10 deletions .emacs.el
Expand Up @@ -10,6 +10,7 @@
(reverse (reverse
(list (expand-file-name "~/Library/Emacs") (list (expand-file-name "~/Library/Emacs")
(expand-file-name "~/Library/Emacs/site-lisp/circe") (expand-file-name "~/Library/Emacs/site-lisp/circe")
(expand-file-name "~/Library/Emacs/site-lisp/distel/elisp")
(expand-file-name "~/Library/Emacs/site-lisp/emacs-w3m") (expand-file-name "~/Library/Emacs/site-lisp/emacs-w3m")
(expand-file-name "~/Library/Emacs/site-lisp/epg") (expand-file-name "~/Library/Emacs/site-lisp/epg")
(expand-file-name "~/Library/Emacs/site-lisp/muse/lisp") (expand-file-name "~/Library/Emacs/site-lisp/muse/lisp")
Expand Down Expand Up @@ -63,7 +64,6 @@
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(Info-additional-directory-list (quote ("~/Library/Info")))
'(abbrev-mode t) '(abbrev-mode t)
'(after-save-hook (quote (executable-make-buffer-file-executable-if-script-p))) '(after-save-hook (quote (executable-make-buffer-file-executable-if-script-p)))
'(align-c++-modes (quote (csharp-mode c++-mode c-mode java-mode groovy-mode))) '(align-c++-modes (quote (csharp-mode c++-mode c-mode java-mode groovy-mode)))
Expand Down Expand Up @@ -284,9 +284,7 @@


;;;_* packages ;;;_* packages


(dolist (package-init-file (mapc #'load (directory-files "~/Library/Emacs/lang" t "\\.el$" t))
(directory-files "~/Library/Emacs/packages" t "\\.el$" t))
(load package-init-file))


;;;_ * abbrev ;;;_ * abbrev


Expand Down Expand Up @@ -330,7 +328,7 @@
(setq circe-default-realname "http://www.newartisans.com/" (setq circe-default-realname "http://www.newartisans.com/"
circe-server-coding-system '(utf-8 . undecided) circe-server-coding-system '(utf-8 . undecided)
circe-server-auto-join-channels circe-server-auto-join-channels
'(("^freenode$" "#ledger" "#emacs")) '(("^freenode$" "#ledger"))
circe-nickserv-passwords '(("freenode" "xco8imer"))) circe-nickserv-passwords '(("freenode" "xco8imer")))


(setq lui-max-buffer-size 30000 (setq lui-max-buffer-size 30000
Expand Down Expand Up @@ -497,6 +495,13 @@ This is an appropriate function for `lui-pre-output-hook'."


(load "flyspell-ext" t) (load "flyspell-ext" t)


;;;_ * git

(require 'git)
(require 'vc-git)

(add-to-list 'vc-handled-backends 'GIT)

;;;_ * groovy-mode ;;;_ * groovy-mode


;(autoload 'groovy-mode "groovy-mode" "" t) ;(autoload 'groovy-mode "groovy-mode" "" t)
Expand Down Expand Up @@ -750,6 +755,7 @@ This can be 0 for immediate, or a floating point value.")
(time-to-seconds (org-time-string-to-time (match-string 0)))))) (time-to-seconds (org-time-string-to-time (match-string 0))))))


(defun org-my-sort-done-tasks () (defun org-my-sort-done-tasks ()
(interactive)
(goto-char (point-min)) (goto-char (point-min))
(org-sort-entries-or-items nil ?F #'org-get-inactive-time) (org-sort-entries-or-items nil ?F #'org-get-inactive-time)
(let (after-save-hook) (let (after-save-hook)
Expand All @@ -776,7 +782,7 @@ This can be 0 for immediate, or a floating point value.")
(call-interactively 'org-ctrl-c-ctrl-c) (call-interactively 'org-ctrl-c-ctrl-c)
(let ((org-remember-templates (let ((org-remember-templates
'((110 "* NOTE %?\n %u" "~/Documents/Pending/todo.txt" "Tasks")))) '((110 "* NOTE %?\n %u" "~/Documents/Pending/todo.txt" "Tasks"))))
(call-interactively 'org-remember)))) (call-interactively 'org-remember))))


(defun org-insert-new-element (txt) (defun org-insert-new-element (txt)
"Given a task subtree as TXT, insert it into the current org-mode buffer." "Given a task subtree as TXT, insert it into the current org-mode buffer."
Expand Down Expand Up @@ -969,9 +975,9 @@ end tell" (format-time-string "%B %e, %Y %l:%M:%S %p"


;;;_ * svk ;;;_ * svk


(load "psvn" t) ;;(load "psvn" t)
(load "psvn-svk" t) ;;(load "psvn-svk" t)
(load "psvn-svn" t) ;;(load "psvn-svn" t)
;;(load "vc-svk" t) ;;(load "vc-svk" t)
;;(load "svk-ediff" t) ;;(load "svk-ediff" t)


Expand Down Expand Up @@ -1323,6 +1329,7 @@ instead of hostname:portnum."


;;;_ * ctl-x ;;;_ * ctl-x


(define-key ctl-x-map [?d] 'delete-whitespace-rectangle)
(define-key ctl-x-map [?t] 'toggle-truncate-lines) (define-key ctl-x-map [?t] 'toggle-truncate-lines)


(defun unfill-paragraph (arg) (defun unfill-paragraph (arg)
Expand Down Expand Up @@ -1459,7 +1466,7 @@ expand wildcards (if any) and visit multiple files."


(define-key mode-specific-map [?a] 'org-agenda) (define-key mode-specific-map [?a] 'org-agenda)
(define-key mode-specific-map [?c] 'clone-region-set-mode) (define-key mode-specific-map [?c] 'clone-region-set-mode)
(define-key mode-specific-map [?d] 'delete-whitespace-rectangle) (define-key mode-specific-map [?d] 'org-insert-dtp-link)


(define-key mode-specific-map [?e ?a] 'byte-recompile-directory) (define-key mode-specific-map [?e ?a] 'byte-recompile-directory)


Expand Down
13 changes: 13 additions & 0 deletions org-devonthink.el
Expand Up @@ -16,6 +16,19 @@
open window for record (get record at \"%s\") open window for record (get record at \"%s\")
end tell" (replace-regexp-in-string "%20" " " record-location)))) end tell" (replace-regexp-in-string "%20" " " record-location))))


(defun org-insert-dtp-link ()
(interactive)
(let ((name (read (do-applescript (format "
tell application \"DEVONthink Pro\"
get name of content record
end tell"))))
(location (read (do-applescript (format "
tell application \"DEVONthink Pro\"
get location of content record
end tell")))))
(insert (org-make-link-string
(concat "dtp://" (concat location name)) name))))

(defun org-dtp-store-link () (defun org-dtp-store-link ()
"Store a link to an dtp e-mail message by Message-ID." "Store a link to an dtp e-mail message by Message-ID."
(let ((link-name (let ((link-name
Expand Down
217 changes: 0 additions & 217 deletions packages/lisp.el

This file was deleted.

0 comments on commit 0e4e310

Please sign in to comment.