use [[https://github.com/sabof/org-bullets][org-bullets]] package to show utf-8 charactes
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
-
(use-package org-bullets
:ensure t
:init
(lambda ()
(org-bullets-mode t))))
+ (setq org-bullets-bullet-list '("⦿" "✪" "◉" "○" "►" "◆"))
#+END_SRC
** Worf Mode
Logging Stuff
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
;; log time when task done
- (setq org-log-done (quote time))
+ ;; (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-capture-templates
(quote (("t" "Todo" entry (file org-default-notes-file)
- "* TODO %?\n%a\n" :clock-in t :clock-resume t)
+ "* TODO %?\n:LOGBOOK:\n- Added: %U\t\tAt: %a\n:END:")
("n" "Note" entry (file org-default-notes-file)
- "* %? :NOTE:\n%a\n" :clock-in t :clock-resume t)
+ "* %? :NOTE:\n:LOGBOOK:\n- Added: %U\t\tAt: %a\n:END:")
("j" "Journal" entry (file+datetree sd/org-diary-file)
- "* %?\n" :clock-in t :clock-resume t)
+ "* %?\n:LOGBOOK:\n:END:" :clock-in t :clock-resume t)
("h" "Habit" entry (file org-default-notes-file)
- "* NEXT %?\n%a\nSCHEDULED: %(format-time-string \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:PROPERTITES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n "))))
+ "* NEXT %?\n:LOGBOOK:\n%a\nSCHEDULED: %(format-time-string \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:END:\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n "))))
#+END_SRC
**** Refiling Tasks
(setq org-agenda-span 'day)
;; Use current windows for agenda view
(setq org-agenda-window-setup 'current-window)
-#+END_SRC
-** Capture
+ ;; show all feature entries for repeating tasks,
+ ;; this is already setting by default
+ (setq org-agenda-repeating-timestamp-show-all t)
+
+ ;; Show all agenda dates - even if they are empty
+ (setq org-agenda-show-all-dates t)
+#+END_SRC
** Export PDF
Quickly start eshll in split window below, refer [[http://www.howardism.org/Technical/Emacs/eshell-fun.html][eshell-here]]
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
-
(defun eshell-x ()
(insert "exit")
(eshell-send-input)
;; (global-set-key (kbd "M-`") (lambda ()
;; (interactive)
;; (if (buffer-name))))
-
#+END_SRC
* Misc Settings
** [[https://github.com/abo-abo/hydra][Hydra]]
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
-
(use-package hydra
:ensure t)
-
+ ;; disable new line in minibuffer when hint hydra
+ (setq hydra-lv nil)
#+END_SRC
*** Font Zoom
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+ (defhydra sd/font-zoom (global-map "<f2>")
- (defhydra sd/font-zoom (global-map "<f2>")
"zoom"
("g" text-scale-increase "in")
("l" text-scale-decrease "out"))
-
#+END_SRC
*** Windmove Splitter
*** hydra-window
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
-
(winner-mode 1)
(defhydra sd/hydra-window (:color red :columns nil)
("d" ace-delete-window "ace-one" :exit t)
("i" ace-maximize-window "ace-one" :exit t)
("b" ido-switch-buffer "buf")
- ("m" headlong-bookmark-jump "bmk")
+ ;; ("m" headlong-bookmark-jump "bmk")
("q" nil "cancel")
("u" (progn (winner-undo) (setq this-command 'winner-undo)) "undo")
("r" (progn (winner-redo) (setq this-command 'winner-redo)) "redo")
("f" nil))
- (global-unset-key (kbd "M-o"))
- (global-set-key (kbd "M-o") 'sd/hydra-window/body)
+ (global-unset-key (kbd "C-o"))
+ (global-set-key (kbd "C-o") 'sd/hydra-window/body)
(defun triggle-windows-max-size ()
(interactive)