emacs - setting add log for todo task
[dotfiles.git] / emacs.d / config.org
index d99baae..3b87ed1 100644 (file)
@@ -49,7 +49,6 @@ Set the emacs load path
 Disable scroll bar, tool-bar and menu-bar
 
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
-
   (scroll-bar-mode 0)
   (tool-bar-mode 0)
   (menu-bar-mode 1)
@@ -59,9 +58,8 @@ Disable scroll bar, tool-bar and menu-bar
 
   (defalias 'yes-or-no-p 'y-or-n-p)
   (show-paren-mode 1)
-
-
-
+  ;; don't backupf
+  (setq make-backup-files nil)
 #+END_SRC
 
 set custom file 
@@ -82,6 +80,12 @@ Switch the focus to help window when it appears
 
 #+END_SRC
 
+Setting scroll right/left
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+  ;  (global-set-key (kbd "C-,") 'scoll-left)
+  ;  (global-set-key (kbd "C-.") 'scoll-right)
+#+END_SRC
+
 * Package Management Tools
 
 ** Use-package
@@ -165,7 +169,7 @@ Setting the fonts
   (if window-system
       (when sd/fixed-font-family
         (set-frame-font sd/fixed-font-family)
-        (set-face-attribute 'default nil :font sd/fixed-font-family :height 140)
+        (set-face-attribute 'default nil :font sd/fixed-font-family :height 130)
         (set-face-font 'default sd/fixed-font-family)))
 
 #+END_SRC
@@ -559,11 +563,11 @@ standard key binding
 Replace the list bullet =-=, =+=,  with =•=, a litter change based [[https://github.com/howardabrams/dot-files/blob/master/emacs-org.org][here]]
 
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
-  (use-package org-mode
-    :init
-    (font-lock-add-keywords 'org-mode
-     '(("^ *\\([-+]\\) "
-            (0 (prog1 () (compose-region (match-beginning 1) (match-end 1) "•")))))))
+  ;; (use-package org-mode
+  ;;   :init
+  ;;   (font-lock-add-keywords 'org-mode
+  ;;    '(("^ *\\([-+]\\) "
+  ;;           (0 (prog1 () (compose-region (match-beginning 1) (match-end 1) "•")))))))
 #+END_SRC
  
 *** Todo Keywords
@@ -630,6 +634,30 @@ This tags are used to filter tasks in agenda views
                 ("DONE" ("WAITING") ("CANCELLED") ("HOLD")))))
 #+END_SRC
 
+Logging Stuff 
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+  ;; log time when task done
+  (setq org-log-done (quote time))
+  ;; save clocking into to LOGBOOK
+  (setq org-clock-into-drawer t)
+  ;; save state change notes and time stamp into LOGBOOK drawer
+  (setq org-log-into-drawer t)
+#+END_SRC
+
+*** Tags
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+  (setq org-tag-alist (quote ((:startgroup)
+                              ("@office" . ?e)
+                              ("@home" . ?h)
+                              (:endgroup)
+                              ("WAITING" . ?w)
+                              ("HOLD" . ?h)
+                              ("CANCELLED" . ?c))))
+
+  ;; Allow setting single tags without the menu
+  (setq org-fast-tag-selection-single-key (quote expert))
+#+END_SRC
+
 *** Capture - Refile - Archive
 
 Capture lets you quickly store notes with little interruption of your work flow.