From 0dc5cf9245142f667077b54bd25c33c4a389d37f Mon Sep 17 00:00:00 2001 From: jgrogan Date: Wed, 3 Jul 2024 08:40:09 +0100 Subject: [PATCH] Free up right alt in emacs. --- emacs/.emacs.d/modules/jg-core.el | 4 ++++ zshrc/.zshrc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/emacs/.emacs.d/modules/jg-core.el b/emacs/.emacs.d/modules/jg-core.el index 2c4ca20..81b9f51 100644 --- a/emacs/.emacs.d/modules/jg-core.el +++ b/emacs/.emacs.d/modules/jg-core.el @@ -5,6 +5,10 @@ (global-set-key "\C-x\C-m" 'execute-extended-command) (global-set-key "\C-c\C-m" 'execute-extended-command) +;; For UK/IRL don't use right Alt key in Emacs, so we +;; can still use hash symbol etc. +(setq ns-right-alternate-modifier (quote none)) + (setq inhibit-startup-message t) (setq initial-scratch-message nil) diff --git a/zshrc/.zshrc b/zshrc/.zshrc index 27d707c..df9ebcc 100644 --- a/zshrc/.zshrc +++ b/zshrc/.zshrc @@ -27,3 +27,7 @@ export PATH=$PATH:$TOOLS_DIR/qt_install/bin alias cdcode="cd $CODE_DIR" alias cdwtools="cd $WTOOLS_DIR" alias cdproj="cd $PROJ_DIR" + +# Git +alias gpo="git push origin" +alias gcb="git checkout branch"