'(or (x-selection-exists-p) (x-selection-exists-p 'CLIPBOARD)))
(defun clipboard-yank ()
- "Reinsert the last stretch of killed text, or the clipboard contents."
+ "Insert the clipboard contents, or the last stretch of killed text."
(interactive)
(let ((x-select-enable-clipboard t))
(yank)))
(menu-bar-make-toggle toggle-case-fold-search case-fold-search
"Case folding in searches"
"Case folding in searches %s"))
+(define-key menu-bar-options-menu [truncate-lines]
+ (menu-bar-make-toggle
+ toggle-truncate-lines truncate-lines
+ "Line Truncation" "Line Truncation %s"
+ (prog1 (setq truncate-lines (not truncate-lines))
+ (set-buffer-modified-p (buffer-modified-p)))))
(define-key menu-bar-options-menu [transient-mark-mode]
(menu-bar-make-toggle toggle-transient-mark-mode transient-mark-mode
"Transient Mark Mode (highlights region)"