;; Stop this crazy blinking cursor
(blink-cursor-mode 0)
-;; (setq blink-cursor-delay 0.25
-;; blink-cursor-interval 0.25)
+;; (setq blink-cursor-delay 0.05
+ ;; blink-cursor-blinks 0
+ ;; blink-cursor-interval 0.25)
;; (set-terminal-coding-system 'utf-8)
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)
)
)
(ff/configure-faces '((ff/robot-address-face :foreground "green4")
- (ff/personal-address-face :foreground "blue2" :weight 'bold)
+ (ff/personal-address-face :foreground "dark magenta" :weight 'bold)
(ff/important-address-face :foreground "red3"
- ;; :foreground "blue2"
- ;; :underline t
- ;; :background "white"
- ;; :foreground "green4"
:weight 'bold
- ;; :slant 'italic
)))
)
"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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Open sans font
-\\usepackage[default]{opensans}
-\\usepackage{cmbright}
-\\renewcommand{\\familydefault}{fos}
-\\renewcommand{\\seriesdefault}{l}
-\\renewcommand{\\bfdefault}{sb}
+%%\\usepackage[default]{opensans}
+%%\\usepackage{cmbright}
+%%\\renewcommand{\\familydefault}{fos}
+%%\\renewcommand{\\seriesdefault}{l}
+%%\\renewcommand{\\bfdefault}{sb}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% The \\todo command
\\newcounter{nbdrafts}
(add-hook 'text-mode-hook 'tc/add-text-counters-in-modeline)
+;; (add-hook 'text-mode-hook
+ ;; (lambda ()
+ ;; (setq comment-start " > ")))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; A function to remove temporary alarm windows
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(git-status (file-name-directory (buffer-file-name)))
(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)))
- )
+(defun ff/insert-date (&optional universal) (interactive "P")
+ ;; (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)))
+ (if universal
+ (insert (format-time-string "%d.%m.%Y %H:%M:%S" (current-time)))
+ (insert (format-time-string "%d.%m.%Y" (current-time))))
+ )
(define-key ff/map [(control g)] 'ff/git-status)
(define-key ff/map [(control w)] 'server-edit)