X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=elisp.git;a=blobdiff_plain;f=emacs.el;h=0ea7c1468907ebde20b9ea477f6da744d2dd7224;hp=77626cf05e59de2a923421b58923a194eecad9f0;hb=213ff66eafe47719840ebd8744d083f1a43fd129;hpb=3435c1b2ecff7b6c318809b9f316a6b3e9ac4a02 diff --git a/emacs.el b/emacs.el index 77626cf..0ea7c14 100644 --- a/emacs.el +++ b/emacs.el @@ -267,8 +267,9 @@ load-warning buffer in case of failure." ;; 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) @@ -710,7 +711,8 @@ occurrences " 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) ) @@ -1212,14 +1214,9 @@ ff/known-address-face is used." ) (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 ))) ) @@ -1240,15 +1237,18 @@ ff/known-address-face is used." "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 @@ -1459,11 +1459,11 @@ universal argument starts xfig even if the .fig does not exist" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% 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} @@ -2413,6 +2413,10 @@ proposes to visit them." (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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -2509,9 +2513,14 @@ with a time tag, and save this file" (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)