(setq auto-mode-alist (append '(("\\.js$" . javascript-mode))
auto-mode-alist))
-(setq org-remember-templates
- '((?t "* TODO %?\n %i\n %a" "~/svn/plans/todo.org")
- (?a "* Appointment: %?\n%^T\n%i\n %a" "~/svn/plans/todo.org")))
-(setq remember-annotation-functions '(org-remember-annotation))
-(setq remember-handler-functions '(org-remember-handler))
-(eval-after-load 'remember
- '(add-hook 'remember-mode-hook 'org-remember-apply-template))
-(global-set-key (kbd "C-c r") 'remember)
-
-(setq org-return-follows-link t)
-(setq org-todo-keywords '("TODO" "STARTED" "WAITING" "DONE"))
-(setq org-agenda-include-diary t)
-(setq org-agenda-include-all-todo t)
-(require 'org)
-(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
-(global-set-key (kbd "C-c a") 'org-agenda)
-(setq org-agenda-custom-commands
- '(("w" todo
- #("WAITING" 0 7
- (face org-warning)))
- ("h" tags-todo "hjemme")
- ("j" tags-todo "jobb")))
-(setq org-tags-column (* -1 (- (frame-width) 10))
- org-agenda-align-tags-to-column (- (frame-width) 10))
+(cw/for-emacs-22-and-later
+ (setq org-remember-templates
+ '((?t "* TODO %?\n %i\n %a" "~/svn/plans/todo.org")
+ (?a "* Appointment: %?\n%^T\n%i\n %a" "~/svn/plans/todo.org")))
+ (setq remember-annotation-functions '(org-remember-annotation))
+ (setq remember-handler-functions '(org-remember-handler))
+ (eval-after-load 'remember
+ '(add-hook 'remember-mode-hook 'org-remember-apply-template))
+ (global-set-key (kbd "C-c r") 'remember)
+
+ (setq org-return-follows-link t)
+ (setq org-todo-keywords '("TODO" "STARTED" "WAITING" "DONE"))
+ (setq org-agenda-include-diary t)
+ (setq org-agenda-include-all-todo t)
+ (require 'org)
+ (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
+ (global-set-key (kbd "C-c a") 'org-agenda)
+ (setq org-agenda-custom-commands
+ '(("w" todo
+ #("WAITING" 0 7
+ (face org-warning)))
+ ("h" tags-todo "hjemme")
+ ("j" tags-todo "jobb")))
+ (setq org-tags-column (* -1 (- (frame-width) 10))
+ org-agenda-align-tags-to-column (- (frame-width) 10)))
(add-to-list 'window-size-change-functions
(lambda (frame) (setq org-tags-column (* -1 (- (frame-width) 10))