(global-set-key "\C-xw" 'what-line)
(global-set-key [f2] 'undo)
(global-set-key [(super tab)] 'lisp-complete-symbol)
(global-set-key [(meta f3)] 'view-file)
(global-set-key [f5] "\M-w")
(global-set-key [f6] "\C-y")
(global-set-key [f7] 'save-buffer)
(global-set-key [f8] 'start-kbd-macro)
(global-set-key [f9] 'end-kbd-macro)
(global-set-key [(control f8)] 'call-last-kbd-macro)
(global-set-key [(control f5)] 'sy-extent-kill-save)
(global-set-key [XF86Copy] #'copy-primary-selection)
(global-set-key [XF86Cut] #'kill-primary-selection)
(global-set-key [XF86Paste] #'yank-clipboard-selection)
(require 'x-compose)
(global-set-key "\C-cm" compose-map)
(define-key global-map '(control prior) 'beginning-of-buffer)
(define-key global-map '(control next) 'end-of-buffer)
(setq menu-accelerator-enabled 'menu-fallback)
(setq menu-accelerator-modifiers '(super))
(setq menu-accelerator-prefix nil)
(define-key global-map [f10] 'accelerate-menu)
(defun cw-build-buffers ()
"Popup buffer menu."
(interactive "@")
(run-hooks 'activate-menubar-hook)
(popup-menu (car (find-menu-item current-menubar '("Buffers")))))
(global-set-key '(control !) 'cw-build-buffers)
(define-key global-map [(control x) (up)] #'shrink-window)
(define-key global-map [(control x) (down)] #'enlarge-window)
(define-key global-map [(control x) (left)] #'shrink-window-horizontally)
(define-key global-map [(control x) (right)] #'enlarge-window-horizontally)
(global-set-key '(control ,) 'kill-entire-line)
(define-key global-map [(control x) (control b)] 'ibuffer)
(define-key global-map [f12] 'from)
(define-key global-map "\C-ce"
(lambda ()
(interactive)
(insert (make-char 'latin-iso8859-15 #x24))))
(global-set-key (kbd "C-c s") 'eshell-toggle)
(require 'mwheel)
(define-key global-map [(button4)] 'mwheel-scroll)
(define-key global-map [(button5)] 'mwheel-scroll)
(define-key global-map [(shift button4)] 'mwheel-scroll)
(define-key global-map [(shift button5)] 'mwheel-scroll)
(define-key global-map [(button9)] 'beginning-of-buffer)
(define-key global-map [(button8)] 'end-of-buffer)
(define-key global-map [(button10)] 'recenter)
(define-key key-translation-map [kp-divide] [?/])
(define-key key-translation-map [kp-multiply] [?*])
(define-key key-translation-map [kp-subtract] [?-])
(define-key key-translation-map [kp-add] [?+])
(define-key key-translation-map [kp-enter] [?\r])
(define-key key-translation-map [kp-decimal] [?.])
(define-key key-translation-map [kp-begin] [begin])
(define-key key-translation-map [kp-home] [home])
(define-key key-translation-map [kp-end] [end])
(define-key key-translation-map [kp-next] [next])
(define-key key-translation-map [kp-prior] [prior])
(define-key key-translation-map [kp-left] [left])
(define-key key-translation-map [kp-right] [right])
(define-key key-translation-map [kp-up] [up])
(define-key key-translation-map [kp-down] [down])
(define-key key-translation-map [kp-insert] [insert])
(define-key key-translation-map [kp-delete] [delete])
(define-key key-translation-map [kp-0] [?0])
(define-key key-translation-map [kp-1] [?1])
(define-key key-translation-map [kp-2] [?2])
(define-key key-translation-map [kp-3] [?3])
(define-key key-translation-map [kp-4] [?4])
(define-key key-translation-map [kp-5] [?5])
(define-key key-translation-map [kp-6] [?6])
(define-key key-translation-map [kp-7] [?7])
(define-key key-translation-map [kp-8] [?8])
(define-key key-translation-map [kp-9] [?9])
(message "Key maps set successfully")
Copyright © 2020 Steve Youngs
Verbatim copying and distribution is permitted in any medium,
providing this notice is preserved.
Last modified: Wed Apr 15 18:11:41 AEST 2020