The command used is constructed from ` lpr-command ' and ` lpr-switches '. This function assumes that your printer can handle this buffer's file type. "Print the current buffer's file duplex by default an argument means simplex. ( defun kw-print-buffer-by-file ( &optional simplex) (bg (frame-parameter nil 'background-color))) ( let ((fg (frame-parameter nil 'foreground-color)) This is typically used when generating printed output from a colorized emacs buffer." The original frame colors are guaranteed to be restored after F returns. "Evaluate (apply F ARGS) after switching the frame colors to \"normal video\", i.e. ( defun kw-with-print-colors (f &rest args) ( lambda (func) (advice-add func :around #'kw-with-print-colors)) I run emacs with "reverse video" if color-printing, the colors come out unreadable on white paper this advice flips to "normal video" while printing. "*Preferred command to print a file, duplex.") (format "%s %s" lpr-command (mapconcat 'identity lpr-switches " ")) Lpr-switches '( "-U" "kdw1" "-o" "sides=two-sided-long-edge") Printer-name "" cups lpr blows up with any other value I have a love-hate relationship with ibuffer: the concept is great - aĭired for buffers, rather than files - but I think I need to sit down and ( dolist (b '( "*Pinentry*" "*Ediff Registry*" "*log-edit-files*" "*Org Help*" "*Org PDF LaTeX Output*" ".newsrc-dribble" "*caml-help*" "*Pp Eval Output*")) ( setq buffer-stack-untracked (remove "*Group*" buffer-stack-untracked)) ( setq buffer-stack-show-position 'buffer-stack-show-position-buffers) (global-set-key (kbd (car pair)) (cdr pair))) '( "*Pinentry*" "*Ediff Registry*" "*log-edit-files*" "*Org Help*" "*Org PDF LaTeX Output*" "*Ibuffer*" ".newsrc-dribble" "*caml-help*" "*Pp Eval Output*")))) simulating my old buffer-stack-untracked settings ( require ' notifications) also via desktop notifications notable holidays that Emacs doesn't know about (appt-activate 1) appointment notifications, please (add-hook 'diary-list-entries-hook recursive diary files are good that I don't get offĭiary-file (expand-file-name "~/notes/diary")ĭiary-comment-start "(*" comments allowed in diary Holiday-bahai-holidays nil these religions have MANY holidays ( setq calendar-location-name "Chicago, IL" your default locationĬalendar-mark-holidays-flag t colorize holidays in the calendarĬalendar-mark-diary-entries-flag t also diary entriesĪppt-display-format 'echo appointment notifications in echo area EUDC-Emacs Unified Directory Client (LDAP).OCaml Interfacing with Other Subsystems.File- and Directory-Specific Modes and Settings.Biffing (Email Notification) in the Mode Line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |