ps-header-line-pad 0.3
ps-header-font-family 'Courier
ps-header-title-font-size '(8.5 . 10)
- ps-header-font-size '(6 . 7)
+ ;; ps-header-font-size '(6 . 7)
+ ps-header-font-size '(10 . 12)
ps-font-size '(7 . 8)
)
"The face to display the dates in the modeline.")
(defun ff/secure-note-add () (interactive)
- (find-file ff/secure-note-file)
- ;; Adds a new entry (i.e. date and a bunch of empty lines)
-
- (goto-char (point-min))
- (insert "-- "
- (format-time-string "%Y %b %d %H:%M:%S" (current-time))
- " --\n\n")
- (previous-line 1)
+ (unless
+ (let ((b (find-buffer-visiting ff/secure-note-file)))
+ (and b (switch-to-buffer b)))
+ (find-file ff/secure-note-file)
+ ;; Adds a new entry (i.e. date and a bunch of empty lines)
+ (goto-char (point-min))
+ (insert "-- "
+ (format-time-string "%Y %b %d %H:%M:%S" (current-time))
+ " --\n\n")
+ (previous-line 1)
+ )
;; Colorizes the dates
(error "No file attached to this buffer")))
(defun ff/insert-date () (interactive)
- (insert (format-time-string "\n * %Y %b %d %H:%M:%S\n\n" (current-time)))
+ ;; (insert (format-time-string "\n * %Y %b %d %H:%M:%S\n\n" (current-time)))
+ ;; (insert (format-time-string "%Y %b %d %H:%M:%S" (current-time)))
+ ;; (insert (format-time-string "%d.%m.%y" (current-time)))
+ (insert (format-time-string "%d.%m.%Y" (current-time)))
)
(define-key ff/map [(control g)] 'ff/git-status)