-
Notifications
You must be signed in to change notification settings - Fork 0
/
.orgConf.el
2278 lines (1998 loc) · 133 KB
/
.orgConf.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;;;or开始设置
;; (setq load-path (cons "~/.emacs.d/lisp" load-path))
;; (setq load-path (cons "~/.emacs.d/contrib/lisp" load-path))
(require 'org-install)
(require 'org)
(add-to-list 'load-path "~/.emacs.d/customizations/my_plugins/org-listcruncher/")
(load "org-listcruncher.el")
(add-to-list 'load-path "~/.emacs.d/customizations/my_plugins/emacs-presentation-mode/")
(load "presentation.el")
(add-to-list 'load-path "~/.emacs.d/customizations/my_plugins/counsel-org-clock/")
(load "counsel-org-clock.el")
;; keep company with org-mru-clock
;;; aspell.exe
; '(ispell-dictionary "british") ;;
;; '(ispell-program-name "C:\\Program Files (x86)\\Aspell\\bin\\aspell.exe")
;;; hunspell faster;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; https://lists.gnu.org/archive/html/help-gnu-emacs/2014-04/msg00030.html
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;(setq ispell-program-name "C:\\hunspell\\bin\\hunspell.exe") ;;
;; (setq ispell-program-name "hunspell") ;;
;; (setq ispell-local-dictionary "en_GB") ;;
;; (setq ispell-local-dictionary-alist ;;
;; '(("en_GB" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_GB" "-p" "C:\\hunspell\\share\\hunspell\\en_GB.dic") nil iso-8859-1))) ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(let* ((variable-tuple (cond ((x-list-fonts "Source Sans Pro") '(:font "Source Sans Pro"))
((x-list-fonts "Lucida Grande") '(:font "Lucida Grande"))
((x-list-fonts "Verdana") '(:font "Verdana"))
((x-family-fonts "Sans Serif") '(:family "Sans Serif"))
(nil (warn "Cannot find a Sans Serif Font. Install Source Sans Pro."))))
(base-font-color (face-foreground 'default nil 'default))
(headline `(:inherit default :weight bold :foreground ,base-font-color)))
(custom-theme-set-faces 'user
`(org-level-8 ((t (,@headline ,@variable-tuple))))
`(org-level-7 ((t (,@headline ,@variable-tuple))))
`(org-level-6 ((t (,@headline ,@variable-tuple))))
`(org-level-5 ((t (,@headline ,@variable-tuple))))
`(org-level-4 ((t (,@headline ,@variable-tuple :height 1.1))))
`(org-level-3 ((t (,@headline ,@variable-tuple :height 1.25))))
`(org-level-2 ((t (,@headline ,@variable-tuple :height 1.5))))
`(org-level-1 ((t (,@headline ,@variable-tuple :height 1.75))))
`(org-document-title ((t (,@headline ,@variable-tuple :height 1.5 :underline nil))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; (custom-set-faces ;;
;; ;; custom-set-faces was added by Custom. ;;
;; ;; If you edit it by hand, you could mess it up, so be careful. ;;
;; ;; Your init file should contain only one such instance. ;;
;; ;; If there is more than one, they won't work right. ;;
;; '(org-document-title ((t ;;
;; (:inherit default ;;
;; :weight bold ;;
;; :foreground "#9F5F9F" ;;
;; :font "Source Sans Pro" ;;
;; :height 1.4 ;;
;; :underline nil)))) ;;
;; '(org-done ((t ;;
;; (:foreground "PaleGreen" ;;
;; :weight normal ;;
;; :strike-through t)))) ;;
;; '(org-headline-done ((((class color) ;;
;; (min-colors 16) ;;
;; (background dark)) ;;
;; (:foreground "LightSalmon" ;;
;; :strike-through t)))) ;;
;; '(org-level-1 ((t ;;
;; (:inherit default ;;
;; :weight bold ;;
;; :foreground "#FCE8C3" ;;
;; :font "Source Sans Pro" ;;
;; :height 1.5)))) ;;
;; '(org-level-2 ((t ;;
;; (:inherit default ;;
;; :weight bold ;;
;; :foreground "#FCE8C3" ;;
;; :font "Source Sans Pro" ;;
;; :height 1.25)))) ;;
;; '(org-level-3 ((t ;;
;; (:inherit default ;;
;; :weight bold ;;
;; :foreground "#FCE8C3" ;;
;; :font "Source Sans Pro" ;;
;; :height 1.15)))) ;;
;; '(org-level-4 ((t ;;
;; (:inherit default ;;
;; :weight bold ;;
;; :foreground "#FCE8C3" ;;
;; :font "Source Sans Pro" ;;
;; :height 1.05)))) ;;
;; '(org-level-5 ((t ;;
;; (:inherit default ;;
;; :weight bold ;;
;; :foreground "#FCE8C3" ;;
;; :font "Source Sans Pro")))) ;;
;; '(org-level-6 ((t ;;
;; (:inherit default ;;
;; :weight bold ;;
;; :foreground "#FCE8C3" ;;
;; :font "Source Sans Pro")))) ;;
;; '(org-level-7 ((t ;;
;; (:inherit default ;;
;; :weight bold ;;
;; :foreground "#FCE8C3" ;;
;; :font "Source Sans Pro")))) ;;
;; '(org-level-8 ((t ;;
;; (:inherit default ;;
;; :weight bold ;;
;; :foreground "#FCE8C3" ;;
;; :font "Source Sans Pro"))))) ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;(require 'org-mouse) ;;加载这个包报错 muse变量未定义
;把下面几行加到 .emacs 文件里。后三行是为命令定义全局快捷键――请改成适合你自己的。
;设置之后,打开 .org 扩展的文件会自动进入 org 模式;
;; The following lines are always needed. Choose your own keys.
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\|wiki\\)$" . org-mode))
;(setq shr-external-browser "chromium-browser")
(add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when global-font-lock-mode is on
;(global-set-key "\C-c l" 'org-store-link) ;;有问题
;(global-set-key "\C-c a" 'org-agenda) ;; 有问题
;(global-set-key "\C-c b" 'org-iswitchb) ;; 有问题
(global-set-key (kbd "C-c l") 'org-store-link) ;;
(global-set-key (kbd "C-c a") 'org-agenda) ;;
(global-set-key (kbd "C-c b") 'org-iswitchb) ;; 原来是因为多了一个空格
(setq org-hide-leading-starts t)
; <2018-05-02 04:49> add by yzl
(setq org-hide-emphasis-markers t)
(setq org-log-done t)
;(setq which-func-mode t) ;; start the which-function-mode to let you capture the template code with c-c c c!!!
; which func-mode had been obsolete , use which-function-mode instead
(setq which-function-mode t) ;; start the which-function-mode to let you capture the template code with c-c c c!!!
(setq org-startup-indented t) ;; or M-x org-indent-mode to clean the org file
(setq auto-image-file-mode t) ;; let emacs show image
(defun org-summary-todo (n-done n-not-done)
"Switch entry to DONE when all subTodo Entries are done,to TODO otherwise."
(let (org-log-done org-log-states) ;; turn-off logging
(org-todo (if (= n-not-done 0) "DONE" "TODO"))))
(add-hook 'org-after-todo-statistics-hook 'org-summary-todo)
;(setq org-doing-file "~/.emacs.d/GTD/orgBoss/newgtd.org")
;(if (boundp 'org-user-agenda-files)
; (setq org-agenda-files org-user-agenda-files)
(setq org-agenda-files (list "~/.emacs.d/GTD/orgBoss/newgtd.org"
"~/.emacs.d/GTD/orgBoss/Book/book.org"
"~/.emacs.d/GTD/orgBoss/Clipboard/clipboard.org"
"~/.emacs.d/GTD/orgBoss/DailyReview/daily.org"
"~/.emacs.d/GTD/orgBoss/Financial/finances.org"
"~/.emacs.d/GTD/orgBoss/Film/film.org"
"~/.emacs.d/GTD/orgBoss/IDEA/idea.org"
"~/.emacs.d/GTD/orgBoss/Journal/journal.org"
"~/.emacs.d/GTD/orgBoss/Private/privnotes.org"
"~/.emacs.d/GTD/orgBoss/Someday/someday.org"
"~/.emacs.d/GTD/orgBoss/Vocab/vocab.org"
"~/.emacs.d/GTD/orgBoss/Site/www.site.org"
"~/.emacs.d/GTD/orgBoss/writing.org"
"~/.emacs.d/GTD/orgBoss/Habit/habits.org" "~/.emacs.d/GTD/phd1.org"
"~/.emacs.d/GTD/Dissertation.org" "~/.emacs.d/GTD/thesis-proposal.org"
"~/.emacs.d/GTD/orgBoss/pythonLearning.org"
"~/.emacs.d/GTD/orgBoss/perlLearning.org"
"~/.emacs.d/GTD/orgBoss/clojureLearning.org"
"~/.emacs.d/GTD/orgBoss/rubyLearning.org"
"~/.emacs.d/GTD/org_Brain/T-IO.org"
"~/.emacs.d/GTD/org_Brain/JAVA.org"
"~/.emacs.d/GTD/org_Brain/SICP.org"
"~/.emacs.d/GTD/org_Brain/公司.org"
"~/.emacs.d/GTD/org_Brain/科研论文.org"
;(append (file-expand-wildcards "~/.emacs.d/GTD/orgBoss/Journal/2*"))
;"~/.emacs.d/GTD/orgBoss/Journal/"
))
(setq org-agenda-files (append (file-expand-wildcards "~/.emacs.d/GTD/OrgBoss/Journal/2*")
org-agenda-files))
;;C-c C-w to redefine terms to different files
; Targets include this file and any file contributing to the agenda - up to 9 levels deep
(setq org-refile-targets (quote ((nil :maxlevel . 9)
(org-agenda-files :maxlevel . 9))))
(setq org-refile-use-outline-path 'file)
; Use full outline paths for refile targets - we file directly with IDO
(setq org-refile-use-outline-path t)
; Targets complete directly with IDO
(setq org-outline-path-complete-in-steps nil)
; Allow refile to create parent tasks with confirmation
(setq org-refile-allow-creating-parent-nodes (quote confirm))
; Use IDO for both buffer and file completion and ido-everywhere to t
(setq org-completion-use-ido t)
(setq ido-everywhere t)
(setq ido-max-directory-size 100000)
(ido-mode (quote both))
;;;; Refile settings
; Exclude DONE state tasks from refile targets
(defun bh/verify-refile-target ()
"Exclude todo keywords with a done state from refile targets"
(not (member (nth 2 (org-heading-components)) org-done-keywords)))
(setq org-refile-target-verify-function 'bh/verify-refile-target)
;;;refile done!!!
;
;(add-to-list 'load-path "~/.emacs.d/chinese-pyim/")
;(require 'chinese-pyim)
;; activate the chinise-pyim
;(setq default-input-method "chinese-pyim")
;先凑合着用 直接内置的 可以使用
;(setq default-input-method "chinese-py-punct")
;(setq pyim-use-tooltop t)
;(global-set-key [C-f11] 'toggle-input-method)
;(global-set-key [C-SPC] 'toggle-input-method) ;;又一次报错提醒
;(global-set-key [C-f12] 'pyim-toggle-full-width-punctuation)
;(defun pyim-use-dict:bigdict ()
; (interactive)
; (setq pyim-dicts
; '((:name "BigDict"
; :file "~/.emacs.d/chinese-pyim/pyim-bigdict.txt"
; :coding utf-8-unix)))
; (pyim-restart-1 t))
;(require 'chinese-pyim-company)
;(setq pyi-company-predict-words-number 10)
;(require 'ibus)
;(add-hook 'after-init-hook 'ibus-mode-on)
;;; 注意路径得写对了
;(add-to-list 'load-path "/usr/share/emacs/24.3/lisp/org/")
;;<2017-10-22 15:23>
;https://github.com/jueqingsizhe66/ranEmacs.d#73-%E5%85%B3%E4%BA%8E%E6%97%B6%E9%97%B4%E6%A0%BC%E5%BC%8F%E7%9A%84%E8%AF%B4%E6%98%8E
;M-x today
;(add-to-list 'load-path "~/.emacs.d/GTD/muse-3.20/lisp")
; (add-to-list 'load-path "~/.emacs.d/GTD/planner-3.42")
; (add-to-list 'load-path "~/.emacs.d/GTD/remember-2.0")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; (setq planner-project "WikiPlanner") ;;
;; (setq muse-project-alist ;;
;; '(("WikiPlanner" ;;
;; ("~/.emacs.d/GTD/myPlan/" ;; Or wherever you want your planner files to be ;;
;; :default "index" ;;
;; :major-mode planner-mode ;;
;; :visit-link planner-visit-link)))) ;;
;; ; (require 'planner) ;;
;; ;(require 'remember) ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;<2017-10-22 15:24> end
;(org-remember-insinuate)
;; You cannot use ctrl+alt+f12 ubuntu terminal global key
;(setq org-default-notes-file "~/.emacs.d/GTD/.notes.org")
;(define-key global-map [f12] 'org-remember)
;(setq org-remember-templates
; '(("TODO" ?t "* TODOS %^{TO DO What(Briefly)} \n %?" "~/.emacs.d/GTD/.notes.org" "TODO")
; ("IDEA" ?i "* TODO %^{What's your IDEA (Briefly)} \n %?" "~/.emacs.d/GTD/.notes.org" "IDEA")
; ("MOVIE" ?m "* TODO %^{Enter the Movie Name}\n %?" "~/.emacs.d/GTD/.notes.org" "MOVIE")
; ("SITES" ?s "* %^{Enter the Name of the Site}\n %?" "~/.emacs.d/GTD/.notes.org" "SITES")
; ("BlogToPublish" ?b "* %^{Enter the Name of the Blog}\n %a %?" "~/.emacs.d/GTD/.notes.org" "BlogToPublish")))
;接下来我对Remember的配置如下:
;事先规划好 几个文件的地方
(setq org-directory "~/.emacs.d/GTD/orgBoss/")
(setq org-default-notes-file "~/.emacs.d/GTD/orgBoss/.notes")
(setq remember-annotation-functions '(org-remember-annotation))
(setq remember-handler-functions '(org-remember-handler))
(add-hook 'remember-mode-hook 'org-remember-apply-template)
;; (define-key global-map (kbd "C-c r") 'org-remember)
(define-key global-map (kbd "C-c c") 'org-capture)
;("j" "Journal" "~/.emacs.d/GTD/orgBoss/Journal/journal.org" "** %^{Head Line} %U %^g\n%i%?" )
(defvar my/org-basic-task-template
"* TODO %^{Task}
:PROPERTIES:
:Effort: %^{effort|1:00|0:05|0:15|0:30|2:00|4:00}
:END:
Captured %<%Y-%m-%d %H:%M>
%?
%i
")
(defvar org-jou-dir "~/.emacs.d/GTD/orgBoss/Journal/"
"gtd org files location")
;(setq org-default-notes-file (expand-file-name "index.org" org-agenda-dir))
(setq current-time-file (expand-file-name (format-time-string "%Y%m%d") org-jou-dir))
(defun my/expense-template ()
(format "Hello world %s" (plist-get org-capture-plist
:account)))
(setq org-capture-templates '(("l" "灵感" entry (file+headline "~/.emacs.d/GTD/orgBoss/writing.org"
"创意") "* %?\n %i\n %a
:PROPERTIES:
:CREATED: %U
:END:
")
;; file+datetree changed to file+olp-dateree
("J" "Journal" entry (file+olp+datetree
"~/.emacs.d/GTD/orgBoss/Journal/journal.org" )
"* %? [#B] \n
:PROPERTIES:
:CREATED: %U
:END:
\n %i\n\n %a"
:clock-in t
:clock-resume t)
("j" "Journal Note"
;entry (file+olp+datetree (get-journal-file-today))
; entry (function get-journal-file-today)
; entry (format "%S%S\" \"~/.emacs.d/GTD/orgBoss/Journal/\"" (format-time-string "%Y%m%d"))
;entry (file (concat "~/.emacs.d/GTD/orgBoss/Journal/" "journal.org"))
; entry (file "~/.emacs.d/GTD/orgBoss/Journal/20171007")
; entry (file+headline current-time-file "Write it!Pls") ;; it works
entry (file current-time-file ) "* Event: %?\n\n %i\n\n From: %a"
:empty-lines 1 )
("t" "Todo" entry (file+headline "~/.emacs.d/GTD/orgBoss/newgtd.org"
"Tasks")
"* TODO [#B] %^{Working Task} %T %^g
:PROPERTIES:
:CREATED: %U
:Effort: %^{effort|1:00|0:30|2:00|4:00|6:00|8:00|10:00|12:00|14:00|16:00}
:END:
%?
%i
"
:clock-in t
:clock-resume t )
("T" "QuickTask" entry (file+headline
"~/.emacs.d/GTD/orgBoss/newgtd.org" "Tasks")
"* TODO [#C] %^{Working Task} %T\nSCHEDULED:%t\n
:PROPERTIES:
:CREATED: %U
:END:
"
:clock-in t
:clock-resume t )
("I" "Write your Wishes" entry (file+headline
"~/.emacs.d/GTD/orgBoss/newgtd.org"
"Wishes") "* TODO %^{Wishful achievement} %T
:PROPERTIES:
:CREATED: %U
:END:
"
:clock-in
:clock-resume)
("i" "IDEA" entry (file+headline
"~/.emacs.d/GTD/orgBoss/IDEA/idea.org" "IDEA")
"* TODO [#A] %^{What's your greatIDEA (Briefly)} %T \n %?
:PROPERTIES:
:CREATED: %U
:END:
"
:clock-in t
:clock-resume t )
("C" "ClojureLearning" entry (file+olp+datetree
"~/.emacs.d/GTD/orgBoss/Clipboard/clojureLearn.org")
; "** %^{Head Line} %U %^g\n%c\n%?"
"** %^{Tip} %U \n \n %?
:PROPERTIES:
:CREATED: %U
:END:
"
;:immediate-finish t
)
;; ("R" "Finance" entry (file+olp+datetree "~/.emacs.d/GTD/orgBoss/Financial/finances.org" )
;; "** %^{BriefDesc} %T %^g\n%?" :clock-in t :clock-resume t :immediate-finish t )
("b" "Book" entry (file+olp+datetree
"~/.emacs.d/GTD/orgBoss/Book/book.org")
"** %^{Enter the Book Name} %t \n
:PROPERTIES:
:CREATED: %U
:END:
:BOOK: \n%[~/.emacs.d/GTD/orgTemplate/.book_template.txt]\n")
("o" "Reference add" entry (file+olp+datetree
"~/.emacs.d/GTD/orgBoss/Book/reference.org") "** %^{Enter the Chapter Name} %t\n
:PROPERTIES:
:CREATED: %U
:END:
:Chapter: \n%[~/.emacs.d/GTD/orgTemplate/.book_template.txt]\n")
("f" "Film" entry ( file+olp+datetree
"~/.emacs.d/GTD/orgBoss/Film/film.org")
"** %^{Enter the Film Name} %t \n
:PROPERTIES:
:CREATED: %U
:END:
:FILM: \n%[~/.emacs.d/GTD/orgTemplate/.film_template.txt]\n")
("d" "Daily Review" entry (file+olp+datetree
"~/.emacs.d/GTD/orgBoss/DailyReview/daily.org") "** %t \n
:PROPERTIES:
:CREATED: %U
:END:
:COACH: \n%[~/.emacs.d/GTD/orgTemplate/.daily_review.txt]\n"
:clock-in t
:clock-resume t)
("a" "Appointment Or Meeting" entry (file+headline
"~/.emacs.d/CalendarDairy/diary.org")
"** APP [#B] %^{Description} %^g
%?
:PROPERTIES:
:CREATED: %U
:END:
"
:clock-in
:clock-resume)
("w" "SITES" entry (file+headline
"~/.emacs.d/GTD/orgBoss/Site/www.site.org"
"SITES") "* %^{Enter the Name of the Site}\n %?")
("s" "Someday" entry (file+olp+datetree
"~/.emacs.d/GTD/orgBoss/Someday/someday.org")
"** %^{Someday Heading} [#B] %U\n%?\n" )
;; ("v" "Vocab" entry (file+olp+datetree "~/.emacs.d/GTD/orgBoss/Vocab/vocab.org" )
;; "** %^{Word?}\n%?\n" )
( "r" "Private" entry (file+olp+datetree
"~/.emacs.d/GTD/orgBoss/Private/privnotes.org")
"\n* %^{topic} [#A] %T \n%i%?\n")
;; ("o" "contact" entry (file+olp+datetree "~/.emacs.d/gtd/phone.org" )
;; "\n* %^{name} :contact:\n\n")
("q" "Quick note" entry (file+headline
"~/.emacs.d/GTD/orgBoss/Note/notes.org"
"Quick notes") "* %^{Fact Headline?} [#B] %^g
:PROPERTIES:
:CREATED: %U
:END:
%?"
:clock-in t
:clock-resume t)
("h" "Habit" entry (file "~/.emacs.d/GTD/orgBoss/Habit/habits.org")
"* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n"
:clock-in t
:clock-resume t )
("c" "code snippet" entry (file
"~/.emacs.d/GTD/orgBoss/code-snippets.org")
"* %?\n%(my/org-capture-code-snippet \"%F\")")))
;;; http://www.howardism.org/Technical/Emacs/capturing-content.html
;;; copy item to the clock capture item
;;; 这种方式会弹出一个buffer框,等待你`C-c C-c` 才会输入到destination clock file
;;; 这种方式可以在你需要修改的前提下
(add-to-list 'org-capture-templates `("B" "Item to Current Clocked Task" item (clock) "%i%?"
:empty-lines 1))
;; 立即输入到对应的destination clock file head :immediate-finish t的作用
(add-to-list 'org-capture-templates `("E" "Contents to Current Clocked Task" plain (clock) "%i"
:immediate-finish t
:empty-lines 1))
;;; 有时候甚至你还需要偷懒 ,不想敲入`C-c c B or E` 于是你使用
(defun region-to-clocked-task (start end)
"Copies the selected text to the currently clocked in org-mode task."
(interactive "r")
(org-capture-string
(buffer-substring-no-properties
start
end)
"E")) ;;; take care it will call the org-capture-template E
(global-set-key (kbd "<f9>") 'region-to-clocked-task)
;; http://ul.io/nb/2018/04/30/better-code-snippets-with-org-capture/
(defun my/org-capture-get-src-block-string (major-mode)
"Given a major mode symbol, return the associated org-src block
string that will enable syntax highlighting for that language
E.g. tuareg-mode will return 'ocaml', python-mode 'python', etc..."
(let ((mm (intern (replace-regexp-in-string "-mode" "" (format "%s" major-mode)))))
(or (car (rassoc mm org-src-lang-modes))
(format "%s" mm))))
(defun my/org-capture-code-snippet (f)
(with-current-buffer (find-buffer-visiting f)
(let ((code-snippet
(buffer-substring-no-properties
(mark)
(- (point) 1)))
(func-name (which-function))
(file-name (buffer-file-name))
(line-number (line-number-at-pos (region-beginning)))
(org-src-mode (my/org-capture-get-src-block-string major-mode)))
(format "file:%s::%s
In ~%s~:
#+BEGIN_SRC %s
%s
#+END_SRC" file-name line-number func-name org-src-mode code-snippet))))
(defun my/org-dir-file (name)
"Prepend name with path to the org-directory root"
(concat org-directory name))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Custom agenda command definitions
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; (setq org-agenda-custom-commands ;;
;; (quote (("N" "Notes" tags "NOTE" ;;
;; ((org-agenda-overriding-header "Notes") ;;
;; (org-tags-match-list-sublevels t))) ;;
;; ("h" "Habits" tags-todo "STYLE=\"habit\"" ;;
;; ((org-agenda-overriding-header "Habits") ;;
;; (org-agenda-sorting-strategy ;;
;; '(todo-state-down effort-up category-keep)))) ;;
;; ))) ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq org-agenda-custom-commands '(("O" "Office block agenda" ((agenda "" ((org-agenda-ndays 1)))
;; limits the agenda display to a single day
(tags-todo "+PRIORITY=\"A\"")
(tags-todo "computer|office|phone")
(tags
"project+CATEGORY=\"elephants\"")
;(tags "review" ((org-agenda-files '("~/org/circuspeanuts.org"))))
;; limits the tag search to the file circuspeanuts.org
(todo "WAITING"))
((org-agenda-compact-blocks t))) ;; options set here apply to the entire block
;; ...other commands here
("g" . "Go to somewhere tags search")
("go" "Office" (tags "@Company")
(tags "@NCEPU"))
("gh" "Home" tags "@Home")
("gm" "School" tags "@NCEPU")
("p" . "Priorities")
("pa" "A items" tags-todo "+PRIORITY=\"A\"")
("pb" "B items" tags-todo "+PRIORITY=\"B\"")
("pc" "C items" tags-todo "+PRIORITY=\"C\"")
("z" . "概念宽度")
("zz" "芝麻" tags "+芝麻")
("zj" "橘子" tags "+橘子")
("zg" "西瓜" tags "+西瓜")
("zd" "大象" tags "+大象")
("zq" "地球" tags "+地球")
("zt" "太阳" tags "+太阳")
("zh" "银河系" tags "+银河系")
("zy" "宇宙" tags "+宇宙")
("j" "加密" tags "+crypt")
("s" . "重要程度" )
("sa" "紧急重要" tags "+紧急重要")
("sb" "紧急不重要" tags "+紧急不重要")
("sc" "不紧急重要" tags "+不紧急重要")
("sd" "不紧急不重要" tags "+不紧急不重要")
("d" . "数据库")
("do" "Oracle" tags "+Oracle")
("ds" "sqlite" tags "+sqlite")
("dm" "Mysql" tags "+Mysql")
("l" . "语言")
("ll" "EnglishPaper" tags "+EnglishPaper" )
("lj" "java" tags "+java")
("lp" "perl" tags "+perl")
("ln" "Linux" tags "+Linux")
("lm" "matlab" tags "+matlab")
("lf" "Fortran" tags "+Fortran")
("lv" "Vim" tags "+Vim" )
("lo" "clojure" tags "+clojure")
("ls" "scheme" tags "+scheme")
("lp" "python" tags "+python")
("lr" "ruby" tags "+ruby")
("le" "emacslisp" tags "+emacslisp")
("lg" "git" tags "+git")
("ld" "Docker" tags "+Docker")
("lc" "CFD" tags "+CFD")
("P" "Project" tags "+PROJECT")
("R" "Recent activity" ((tags "*" ((org-agenda-overriding-header
"Recent Activity")
(org-agenda-skip-function
'(+org/has-child-and-last-update-before
14))))) nil nil)
("r" "Review" ((agenda "" ((org-agenda-ndays 7)
(org-agenda-include-diary t)
(org-agenda-span 'week)
(org-agenda-skip-function
'(org-agenda-skip-entry-if 'done))))
;; (stuck ""
;; ((org-agenda-overriding-header "Stucked Projects")
;; (org-stuck-projects
;; '("+LEVEL=1/-DONE"
;; ("TODO" "NEXT" "SOMEDAY" "PRIORITY=\"C\"")
;; ("NOSTUCK")
;; ""))
;; (org-agenda-files
;; '("~/Dropbox/ORG/project.org"))))
;; (stuck ""
;; ((org-agenda-overriding-header "Stucked Todos")
;; (org-stuck-projects
;; '("+LEVEL=4/-DONE"
;; ("TODO" "NEXT" "SOMEDAY" "PRIORITY=\"C\"")
;; ("NOSTUCK")
;; ""))
;; (org-agenda-files
;; '("~/Dropbox/ORG/gtd.org"))))
(tags-todo "+OFFICE-PRIORITY=\"C\""
((org-agenda-overriding-header
"Office High Priority Tasks")
(org-agenda-skip-function
'(org-agenda-skip-entry-if 'todo
'done))))
(tags-todo "HOME-PRIORITY=\"C\""
((org-agenda-overriding-header
"Home High Priority Tasks")
(org-agenda-skip-function
'(org-agenda-skip-entry-if 'todo
'done))))
(tags-todo
"+CREATED>=\"<-1w>\"|+UPDATED>=\"<-1w>\""
((org-agenda-overriding-header
"Tasks Created This Week")
(org-agenda-skip-function
'(org-agenda-skip-entry-if 'todo 'done))))
(tags "*" ((org-agenda-overriding-header
"Recent Activity")
(org-agenda-skip-function
'(+org/has-child-and-last-update-before
7))))) nil nil)))
; (setq org-capture-templates
; '(("Todo" ?t "* TODOS %^{To Do What?(Brief Description)} %^g\n%?\nAdded: %U" "~/.emacs.d/GTD/newgtd.org" "Tasks")
; ("IDEA" ?i "* TODO %^{What's your IDEA (Briefly)} \n %?" "~/.emacs.d/GTD/orgBoss/IDEA/idea.org" "IDEA")
; ("Journal" ?j "** %^{Head Line} %U %^g\n%i%?" "~/.emacs.d/GTD/orgBoss/Journal/journal.org")
; ("Clipboard" ?c "** %^{Head Line} %U %^g\n%c\n%?" "~/.emacs.d/GTD/orgBoss/Clipboard/clipboard.org")
; ("Receipt" ?r "** %^{BriefDesc} %U %^g\n%?" "~/.emacs.d/GTD/orgBoss/Financial/finances.org")
; ("Book" ?b "** %^{Enter the Book Name} %t :BOOK: \n%[~/.emacs.d/GTD/orgTemplate/.book_template.txt]\n"
; "~/.emacs.d/GTD/orgBoss/Book/book.org")
; ("Film" ?f "** %^{Enter the Film Name} %t :FILM: \n%[~/.emacs.d/GTD/orgTemplate/.film_template.txt]\n"
; "~/.emacs.d/GTD/orgBoss/Film/film.org")
; ("Daily Review" ?d "** %t :COACH: \n%[~/.emacs.d/GTD/orgTemplate/.daily_review.txt]\n"
; "~/.emacs.d/GTD/orgBoss/DailyReview/daily.org")
; ("SITES" ?w "* %^{Enter the Name of the Site}\n %?" "~/.emacs.d/GTD/orgBoss/Site/www.site.org" "SITES")
; ("Someday" ?s "** %^{Someday Heading} %U\n%?\n" "~/.emacs.d/GTD/orgBoss/Someday/someday.org")
; ("Vocab" ?v "** %^{Word?}\n%?\n" "~/.emacs.d/GTD/orgBoss/Vocab/vocab.org")
; ("Private" ?p "\n* %^{topic} %T \n%i%?\n" "~/.emacs.d/GTD/orgBoss/Private/privnotes.org")
; ("Contact" ?p "\n* %^{Name} :CONTACT:\n%[l:/contemp.txt]\n"
; "F:/gtd/privnotes.org")
; )
; )
;
;
; (setq org-remember-templates
; '(("l" "灵感" entry (file+headline "~/.emacs.d/GTD/writing.org" "创意")
; "* %?\n %i\n %a")
; ("j" "Journal" entry (file+datetree "~/.emacs.d/GTD/orgBoss/Journal/journal.org" )
; "* %?\n输入于: %U\n %i\n %a")
; ("t" "Todo" entry (file+headline "~/.emacs.d/GTD/newgtd.org" "Tasks")
; "* TODOS %^{To Do What?(Brief Description)} %^g\n%?\nAdded: %U" )
; ("i" "IDEA" entry (file+headline "~/.emacs.d/GTD/orgBoss/IDEA/idea.org" "IDEA")
; "* TODO %^{What's your IDEA (Briefly)} \n %?" )
; ("c" "Clipboard" entry (file+datetree "~/.emacs.d/GTD/orgBoss/Clipboard/clipboard.org")
; "** %^{Head Line} %U %^g\n%c\n%?" )
; ("r" "Receipt" entry (file+datetree "~/.emacs.d/GTD/orgBoss/Financial/finances.org" )
; "** %^{BriefDesc} %U %^g\n%?" )
; ("b" "Book" entry (file+datetree "~/.emacs.d/GTD/orgBoss/Book/book.org")
; "** %^{Enter the Book Name} %t :BOOK: \n%[~/.emacs.d/GTD/orgTemplate/.book_template.txt]\n")
; ("f" "Film" entry ( file+datetree "~/.emacs.d/GTD/orgBoss/Film/film.org")
; "** %^{Enter the Film Name} %t :FILM: \n%[~/.emacs.d/GTD/orgTemplate/.film_template.txt]\n")
; ("d" "Daily Review" entry (file+datetree "~/.emacs.d/GTD/orgBoss/DailyReview/daily.org")
; "** %t :COACH: \n%[~/.emacs.d/GTD/orgTemplate/.daily_review.txt]\n")
; ("w" "SITES" entry (file+headline "~/.emacs.d/GTD/orgBoss/Site/www.site.org" "SITES")
; "* %^{Enter the Name of the Site}\n %?" )
; ("s" "Someday" entry (file+datetree "~/.emacs.d/GTD/orgBoss/Someday/someday.org")
; "** %^{Someday Heading} %U\n%?\n" )
; ("v" "Vocab" entry (file+datetree "~/.emacs.d/GTD/orgBoss/Vocab/vocab.org" )
; "** %^{Word?}\n%?\n" )
; ( "p" "Private" entry (file+datetree "~/.emacs.d/GTD/orgBoss/Private/privnotes.org")
; "\n* %^{topic} %T \n%i%?\n")
; ("a" "contact" entry (file+datetree "~/.emacs.d/gtd/phone.org" )
; "\n* %^{name} :contact:\n\n")
; ))
;
; (setq org-remember-templates
; '(("Todo" ?t "* TODOS %^{To Do What?(Brief Description)} %^g\n%?\nAdded: %U" "~/.emacs.d/GTD/newgtd.org" "Tasks")
; ("IDEA" ?i "* TODO %^{What's your IDEA (Briefly)} \n %?" "~/.emacs.d/GTD/orgBoss/IDEA/idea.org" "IDEA")
; ("Journal" ?j "** %^{Head Line} %U %^g\n%i%?" "~/.emacs.d/GTD/orgBoss/Journal/journal.org")
; ("Clipboard" ?c "** %^{Head Line} %U %^g\n%c\n%?" "~/.emacs.d/GTD/orgBoss/Clipboard/clipboard.org")
; ("Receipt" ?r "** %^{BriefDesc} %U %^g\n%?" "~/.emacs.d/GTD/orgBoss/Financial/finances.org")
; ("Book" ?b "** %^{Enter the Book Name} %t :BOOK: \n%[~/.emacs.d/GTD/orgTemplate/.book_template.txt]\n"
; "~/.emacs.d/GTD/orgBoss/Book/book.org")
; ("Film" ?f "** %^{Enter the Film Name} %t :FILM: \n%[~/.emacs.d/GTD/orgTemplate/.film_template.txt]\n"
; "~/.emacs.d/GTD/orgBoss/Film/film.org")
; ("Daily Review" ?d "** %t :COACH: \n%[~/.emacs.d/GTD/orgTemplate/.daily_review.txt]\n"
; "~/.emacs.d/GTD/orgBoss/DailyReview/daily.org")
; ("SITES" ?w "* %^{Enter the Name of the Site}\n %?" "~/.emacs.d/GTD/orgBoss/Site/www.site.org" "SITES")
; ("Someday" ?s "** %^{Someday Heading} %U\n%?\n" "~/.emacs.d/GTD/orgBoss/Someday/someday.org")
; ("Vocab" ?v "** %^{Word?}\n%?\n" "~/.emacs.d/GTD/orgBoss/Vocab/vocab.org")
; ("Private" ?p "\n* %^{topic} %T \n%i%?\n" "~/.emacs.d/GTD/orgBoss/Private/privnotes.org")
; ("Contact" ?p "\n* %^{Name} :CONTACT:\n%[l:/contemp.txt]\n"
; "F:/gtd/privnotes.org")
; )
; )
;
;
; “|”用来分隔“未完成”和“完成”两种状态的关键词,前面为未完成项,后面为完成项。如果没有“|”符号,最后一个关键词将被设为完成项,其余为未完成项。
; ! 表示时间
; 所有的TODO都只有 两种类 Undo and done 用 |分隔
; type 相当于 #+TYP_TODO 也有两种类型
; sequence 相当于 #+SEQ_TODO 也有两种类型
; 可以写出多个sequence 等你工作 学习 继续进行修改 但是注意无论是type还是sequence都得有|
; TODO 要做 DOING正咋做 PENDING做完了再做 WAITING做了一半得等其他人完成
(setq org-todo-keywords '((type "工作(w!)" "学习(s!)" "休闲(l!)" "|")
(type "REPORT(r!)" "BUG(b!)" "KNOWNCAUSE(k!)" "|" "FIXED(f!)")
(sequence "PENDING(p!)" "TODO(t!)" "DOING(i!)" "WAITING(e!)" "|"
"DONE(d!)" "CANCELED(c!)" "ABORT(a@/!)")))
(setq org-todo-keyword-faces '(("工作" .
(:background "red"
:foreground "white"
:weight bold))
("学习" .
(:background "white"
:foreground "red"
:weight bold))
("休闲" .
(:foreground "MediumBlue"
:weight bold))
("REPORT" .
(:background "red"
:foreground "white"
:weight bold))
("BUG" .
(:background "white"
:foreground "red"
:weight bold))
("KNOWNCAUSE" .
(:foreground "MediumBlue"
:weight bold))
("FIXED" .
(:foreground "yellow"
:weight bold))
("PENDING" .
(:background "Purple"
:foreground "gray"
:weight bold))
("TODO" .
(:background "DarkOrange"
:foreground "black"
:weight bold))
("DOING" .
(:background "yellow"
:foreground "purple"
:weight bold))
("DONE" .
(:background "azure"
:foreground "Darkgreen"
:weight bold))
("CANCELED" .
(:background "LightGray"
:foreground "black"))
("ABORT" .
(:background "gray"
:foreground "black"))))
;;相当于设置 #+tags: 在每一个org文件中
(setq org-tag-alist
'((:startgroup .
nil)
("@Company" . ?o)
("@Home" . ?H)
("@NCEPU" . ?n)
(:endgroup .
nil)
(:newline)
(:startgroup .
nil)
("Oracle" . ?O)
("sqlite" . ?S)
("Mysql" . ?Q)
(:endgroup .
nil)
(:newline)
(:startgroup .
nil)
("EnglishPaper" . ?l)
("java" . ?j)
("perl" . ?p)
("Linux" . ?L)
("matlab" . ?m)
("Fortran" . ?f)
("Vim" . ?v)
("clojure" . ?J)
("scheme" . ?s)
("python" . ?y)
("ruby" . ?r)
("emacslisp" . ?e)
("git" . ?G)
("Docker" . ?D)
("CFD" . ?F)
(:endgroup .
nil)
(:newline)
(:startgroup .
nil)
("crypt" . ?C)
(:endgroup .
nil)
(:newline)
(:startgroup .
nil)
("PROJECT" . ?P)
(:endgroup .
nil)
(:newline)
(:startgroup .
nil)
("芝麻" . ?z)
("橘子" . ?J)
("西瓜" . ?x)
("大象" . ?X)
("大山" . ?M)
("地球" . ?E)
("太阳" . ?T)
("银河系" . ?Y)
("宇宙" . ?Z)
(:endgroup .
nil)
(:newline)
(:startgroup .
nil)
("blockchain" . ?b)
("学术" . ?u)
(:endgroup .
nil)
(:newline)
(:startgroup .
nil)
("紧急重要" . ?a)
("紧急不重要" . ?b)
("不紧急重要" . ?c)
("不紧急不重要" . ?d)
(:endgroup .
nil)))
;;; privilege
;; 优先级范围和默认任务的优先级
(setq org-highest-priority ?A)
(setq org-lowest-priority ?E)
(setq org-default-priority ?E)
;; 优先级醒目外观
(setq org-priority-faces '((?A .
(:background "red"
:foreground "white"
:weight bold))
(?B .
(:background "DarkOrange"
:foreground "white"
:weight bold))
(?C .
(:background "yellow"
:foreground "DarkGreen"
:weight bold))
(?D .
(:background "DodgerBlue"
:foreground "black"
:weight bold))
(?E .
(:background "SkyBlue"
:foreground "black"
:weight bold))))
;; for idle time
(defun jump-to-org-agenda ()
(interactive)
(let ((buf (get-buffer "*Org Agenda*")) wind)
(if buf (if
(setq wind (get-buffer-window buf))
(select-window wind)
(if (called-interactively-p)
(progn (select-window (display-buffer buf t t))
(org-fit-window-to-buffer)
;; (org-agenda-redo)
)
(with-selected-window (display-buffer buf)
(org-fit-window-to-buffer)
;; (org-agenda-redo)
)))
(call-interactively 'org-agenda-list)))
;;(let ((buf (get-buffer "*Calendar*")))
;; (unless (get-buffer-window buf)
;; (org-agenda-goto-calendar)))
)
;; 300s =5min
(run-with-idle-timer 900 t 'jump-to-org-agenda)
;https://github.com/sachac/.emacs.d/blob/gh-pages/Sacha.org#strike-through-done-headlines
;; change "DONE" keyword style
(setq org-fontify-done-headline t)
(custom-set-faces '(org-done ((t
(:foreground "PaleGreen"
:weight normal
:strike-through t))))
'(org-headline-done ((((class color)
(min-colors 16)
(background dark))
(:foreground "LightSalmon"
:strike-through t)))))
(defun my/org-review-month (start-date)
"Review the month's clocked tasks and time."
(interactive (list (org-read-date)))
;; Set to the beginning of the month
(setq start-date (concat (substring start-date 0 8) "01"))
(let ((org-agenda-show-log t)
(org-agenda-start-with-log-mode t)
(org-agenda-start-with-clockreport-mode t)
(org-agenda-clockreport-parameter-plist
'(:link t
:maxlevel 3)))
(org-agenda-list nil start-date 'month)))
;; http://pages.sachachua.com/.emacs.d/Sacha.html
;; Registers allow you to jump to a file or other location quickly. To jump to a register, use C-x r j followed by the letter of the register. Using registers for all these file shortcuts is probably a bit of a waste since I can easily define my own keymap, but since I rarely go beyond register A anyway. Also, I might as well add shortcuts for refiling.
(defvar my/refile-map (make-sparse-keymap))
(defmacro my/defshortcut (key file)
`(progn (set-register ,key (cons 'file ,file))
(define-key my/refile-map (char-to-string ,key)
(lambda (prefix)
(interactive "p")
(let ((org-refile-targets '(((,file) :maxlevel . 6)))
(current-prefix-arg (or current-prefix-arg
'(4))))
(call-interactively 'org-refile))))))
(define-key my/refile-map "," 'my/org-refile-to-previous-in-file)
(my/defshortcut ?i "~/.emacs.d/GTD/newgtd.org")
(my/defshortcut ?f "~/.emacs.d/GTD/orgBoss/Film/film.org")
(my/defshortcut ?v "~/.emacs.d/GTD/orgBoss/Vocab/vocab.org")
(my/defshortcut ?s "~/.emacs.d/GTD/orgBoss/Someday/someday.org")
(my/defshortcut ?S "~/.emacs.d/GTD/orgBoss/Site/www.site.org")
(my/defshortcut ?B "~/.emacs.d/GTD/orgBoss/Book/book.org")
(my/defshortcut ?c "~/.emacs.d/GTD/orgBoss/Clipboard/clojureLearn.org")
(my/defshortcut ?b "~/.emacs.d/GTD/orgBoss/business/business.org")
(my/defshortcut ?e "~/.emacs.d/GTD/orgBoss/code/codes.org")
(my/defshortcut ?W "~/.emacs.d/GTD/orgBoss/Site/blog.org")
(my/defshortcut ?j "~/.emacs.d/GTD/orgBoss/Journal/journal.org")
(my/defshortcut ?I "~/.emacs.d/GTD/orgBoss/IDEA/idea.org")
(my/defshortcut ?d "~/.emacs.d/GTD/orgBoss/DailyReview/daily.org")
(my/defshortcut ?l "~/.emacs.d/GTD/orgBoss/learning.org")
(my/defshortcut ?q "~/.emacs.d/GTD/orgBoss/questions.org")
(my/defshortcut ?w "~/.emacs.d/GTD/writing.org")
(my/defshortcut ?p "~/.emacs.d/GTD/phd1.org")
(my/defshortcut ?D "~/.emacs.d/GTD/Dissertation.org")
(my/defshortcut ?n "~/.emacs.d/GTD/orgBoss/Note/notes.org")
(my/defshortcut ?o "~/.emacs.d/.orgConf.el")
;;; the minimum time is one tomato time: 0:30
(add-to-list 'org-global-properties '("Effort_ALL".
" 0:30 1:00 2:00 3:00 4:00 6:00 8:00 12:00 15:00 20:00"))
(defvar my/weekly-review-line-regexp
"^ \\([^:]+\\): +\\(Sched[^:]+: +\\)?TODO \\(.*?\\)\\(?:[ ]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[ ]*$"
"Regular expression matching lines to include.")
(defvar my/weekly-done-line-regexp
"^ \\([^:]+\\): +.*?\\(?:Clocked\\|Closed\\):.*?\\(TODO\\|DONE\\) \\(.*?\\)\\(?:[ ]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[ ]*$"
"Regular expression matching lines to include as completed tasks.")
(defun my/quantified-get-hours (category time-summary)
"Return the number of hours based on the time summary."
(if (stringp category)
(if (assoc category time-summary)