Use mapcar to unset global key

master
Jacopo De Simoi 7 years ago
parent bba5aacc0f
commit 745548fd36
  1. 11
      global.org

@ -1,4 +1,4 @@
#+TITLE: emacs init file #+Title: emacs init file
#+AUTHOR: Jacopo De Simoi #+AUTHOR: Jacopo De Simoi
#+EMAIL: jacopods@math.utoronto.ca #+EMAIL: jacopods@math.utoronto.ca
#+OPTIONS: *:t ::t #+OPTIONS: *:t ::t
@ -307,14 +307,13 @@
** Global bindings ** Global bindings
Remove some supremely annoying bindings Remove some supremely annoying bindings
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(global-unset-key (kbd "C-z")) (mapcar
(global-unset-key (kbd "C-x f")) (lambda (ch)
(global-unset-key (kbd "<M-f4>")) ; rly? (global-unset-key (kbd ch)))
'("C-z" "C-x f" "<M-f4>" "C-M-u" "C-M-d"))
#+END_SRC #+END_SRC
Change {up,down}-list Change {up,down}-list
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(global-unset-key (kbd "C-M-u"))
(global-unset-key (kbd "C-M-d"))
(global-set-key (kbd "C-M-i") 'down-list) ;; -i stands for /in/ (global-set-key (kbd "C-M-i") 'down-list) ;; -i stands for /in/
(global-set-key (kbd "C-M-o") 'up-list) ;; -o stands for /out/ (global-set-key (kbd "C-M-o") 'up-list) ;; -o stands for /out/
#+END_SRC #+END_SRC

Loading…
Cancel
Save