;; Printing
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(require 'ps-print)
+(load "ps-print")
(setq ps-print-color-p nil
;; ps-paper-type 'letter
(concat
;; The temperature
+
(let ((temp (/ (string-to-number (ff/file-first-line ff/temperature-file)) 1000)))
(if (> temp 50)
(concat
(cond
((string= battery-status "Full") "L")
- ((string= battery-status "Charging") (format "L%d%%" (ff/battery-percent "energy")))
- ((string= battery-status "Discharging") (format "B%d%%" (ff/battery-percent "charge")))
- (t battery-status)))
+
+ ((string= battery-status "Charging")
+ (format "L%d%%" (max (ff/battery-percent "charge")
+ (ff/battery-percent "energy"))))
+
+ ((string= battery-status "Discharging")
+ (format "B%d%%" (max (ff/battery-percent "charge")
+ (ff/battery-percent "energy"))))
+
+ (t battery-status)
+
+ ))
)
vc-follow-symlinks t
)
-(when (require 'vc-git nil t)
+(when (load "vc-git" nil t)
(add-to-list 'vc-handled-backends 'GIT))
;; alarm-vc.el is one of my own scripts, check my web page
;; Cool stuff to navigate in emacs-lisp sources
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(require 'find-func)
+(load "find-func")
(defun ff/goto-function-definition (&optional goback)
"Go directly to the definition of the function at point. With
;; Keymaping
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(require 'info nil t)
+(load "info" nil t)
(define-key global-map [(shift iso-lefttab)] 'ispell-complete-word)
;; shift-tab going backward is kind of standard
;; exclusively with my selector.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(require 'recentf)
+(load "recentf")
(setq recentf-exclude
(append recentf-exclude
;; selector.el is one of my own scripts, check my web page
(when (ff/load-or-alert "selector" t)
- (define-key global-map [(shift return)] 'selector/quick-move-in-buffer)
+ ;; (define-key global-map [(shift return)] 'selector/quick-move-in-buffer)
(define-key global-map [(control x) (control b)] 'selector/switch-buffer)
(defun ff/visit-debpkg-file (&optional regexp)
(setq-default vm-summary-show-threads t)
+;; (setq vm-preview-lines nil)
+
+;; (setq vm-auto-displayed-mime-content-types '("text"));; "multipart"));; "image/xpm"
+
+(setq vm-mime-thumbnail-max-geometry nil)
+
+(setq vm-auto-displayed-mime-content-types '(
+ "text"
+ "image/jpeg"
+ "image/png"
+ "multipart"
+ "message/rfc822"
+ ))
+
+
(setq vm-startup-message-displayed t ;; Yes, we already saw it, no need to insist
vm-use-menus nil
vm-skip-deleted-messages nil
vm-mutable-windows t
vm-mutable-frames nil
vm-summary-thread-indent-level 1
- vm-summary-uninteresting-senders-arrow "->"
+ ;; vm-summary-uninteresting-senders-arrow "->"
+ vm-summary-uninteresting-senders-arrow "►"
+ ;; vm-summary-uninteresting-senders-arrow "➔"
+ ;; vm-summary-uninteresting-senders-arrow "➤"
vm-summary-arrow "> "
vm-included-text-prefix " > "
vm-forwarding-digest-type "mime"
- vm-mime-attachment-save-directory "~/"
+ vm-mime-attachment-save-directory "~/misc/attachments"
vm-use-toolbar nil
vm-frame-per-folder nil
vm-frame-per-summary nil
)
+;; (add-to-list 'vm-visible-headers "From " t)
;; (add-to-list 'vm-visible-headers "Reply-To:" t)
;; (add-to-list 'vm-visible-headers "X-Mailer:" t)
;; (add-to-list 'vm-visible-headers "X-from-in-bbdb:" t)
vm-infer-mime-types t
vm-mime-use-image-strips nil
- vm-mime-base64-decoder-program "mimencode"
- vm-mime-base64-decoder-switches '("-u")
- vm-mime-base64-encoder-program "mimencode"
+ vm-mime-base64-decoder-program "base64"
+ vm-mime-base64-decoder-switches '("-d")
+ vm-mime-base64-encoder-program "base64"
vm-mime-base64-encoder-switches '()
- vm-auto-displayed-mime-content-types '(
- ;; "plain text"
- "text"
- "multipart"
- "image/xpm"
- )
+ ;; vm-auto-displayed-mime-content-types '(
+ ;; ;; "plain text"
+ ;; "text"
+ ;; "multipart"
+ ;; "image/xpm"
+ ;; )
;; vm-auto-displayed-mime-content-type-exceptions '("text/html")
;; (add-to-list 'vm-mime-default-face-charsets "utf-8")
(add-to-list 'vm-mime-default-face-charsets "iso-8859-1")
+;; (add-hook 'vm-mail-send-hook 'ff/vm-remove-non-7bits-in-headers)
(add-hook 'vm-mail-send-hook 'vm-mime-encode-headers)
(add-hook 'vm-mail-send-hook 'vm-mail-check-recipients)
(add-hook 'vm-reply-hook (lambda () (set-buffer-modified-p nil)))
;; (add-hook 'vm-mail-send-hook 'ff/vm-remove-properties)
-(defun ff/vm-mime-save-all-files (&optional delete)
- "Save all the mail attachments. With delete argument, remove
-the attachement from mail."
- (interactive "P")
- (let ((vm-mime-delete-after-saving delete))
- (while (and (vm-mime-reader-map-save-file)
- (condition-case nil (vm-move-to-next-button 1)
- (error nil)))))
- )
+;; (defun ff/vm-mime-save-all-files (&optional delete)
+ ;; "Save all the mail attachments. With delete argument, remove
+;; the attachement from mail."
+ ;; (interactive "P")
+ ;; (let ((vm-mime-delete-after-saving delete))
+ ;; (while (and (vm-mime-reader-map-save-file)
+ ;; (condition-case nil (vm-move-to-next-button 1)
+ ;; (error nil)))))
+ ;; )
(defun ff/vm-mime-save-file (&optional delete)
"Save the current attachement. With delete argument, remove the