; (show-paren-mode t)) ; show-paren-mode takes too much cpu
(cw/for-emacs
(global-font-lock-mode t)
- (font-lock-mode 1)
- (server-start))
+ (font-lock-mode 1))
;; Multiple mode
(setq inhibit-startup-echo-area-message "tfheen")
)
+(cw/for-emacs-23-and-later
+ (setq line-move-visual nil))
+
;(cw/for-emacs-21
; (display-battery))
;(cw/for-emacs-22
(apply 'encode-time (org-parse-time-string ts))))
(end (time-to-seconds
(apply 'encode-time (org-parse-time-string te))))
- tbl day-numbers)
+ tbl day-numbers heading1-label)
+
(setq params (plist-put params :tstart nil))
(setq params (plist-put params :end nil))
(move-marker ins (point))
(when (setq time (get-text-property p :org-clock-minutes))
(save-excursion
(beginning-of-line 1)
- (when (and (looking-at (org-re "\\(\\*+\\)[ \t]+\\(.*?\\)\\([ \t]+:[[:alnum:]_@:]+:\\)?[ \t]*$"))
+ (when (and (looking-at (org-re "^\\(\\*+\\)[ \t]+\\(.*?\\)\\([ \t]+:[[:alnum:]_@:]+:\\)?[ \t]*$"))
(setq level (org-reduced-level
(- (match-end 1) (match-beginning 1))))
(<= level maxlevel))
- (push (list
+ (if (= level 1)
+ (setq heading1-label (match-string 2))
+ (push (list
start
- (match-string 2)
- time) tbl))))))
+ (concat heading1-label ": " (match-string 2))
+ time) tbl)))))))
(setq start (+ 86400 start)))
(setq tbl (nreverse tbl))
(goto-char ins)