From c2bb5340d5d8dcfbdc4c78e4abf4246a8b429b96 Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Wed, 24 Jun 2020 01:26:06 +0200 Subject: [PATCH] 00-my-setup: key-bindung for 'query-replace' * on qwertz keyboards use a more convinient accessible binding "M-#" * move python mode adaptions to python mode.el * deactivate annoying visible/audible bell Signed-off-by: Ralf Zerres --- site-start.d/00-my-setup.el | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/site-start.d/00-my-setup.el b/site-start.d/00-my-setup.el index a613358..c23fbc9 100644 --- a/site-start.d/00-my-setup.el +++ b/site-start.d/00-my-setup.el @@ -13,7 +13,9 @@ (interactive) (load-file user-init-file)) +;; elementary key bindings (bind-key "C-c M-l" 'reload-init-file) +(bind-key "M-#" 'query-replace) ; default is to cryptic on qwertz ;; surpress bloat messages (setq inhibit-startup-message t @@ -21,6 +23,9 @@ inhibit-startup-echo-area-message t inhibit-splash-screen t) +(setq visible-bell nil) ; Disable annoying visual bell graphic +(setq ring-bell-function 'ignore) ; Disable super annoying audio bell + ;; line wrapping (setq new-line-add-newlines nil) (setq-default truncate-lines t) @@ -33,13 +38,6 @@ ;; to window panes organized horizontally ;; (split-window-horizontally) -;; python mode adaptions -(add-hook 'python-mode-hook - (lambda () - (setq indent-tabs-mode t) - (setq python-indent 8) - (setq tab-width 4))) - ;; enable 'linux' as default c-mode minor mode (add-hook 'c-mode-common-hook 'linux) @@ -73,4 +71,5 @@ (fset 'yes-or-no-p 'y-or-n-p) (provide '00-my-setup) +;; End: ;;; 00-my-setup.el ends here