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 <ralf.zerres@networkx.de>
This commit is contained in:
@@ -13,7 +13,9 @@
|
|||||||
(interactive)
|
(interactive)
|
||||||
(load-file user-init-file))
|
(load-file user-init-file))
|
||||||
|
|
||||||
|
;; elementary key bindings
|
||||||
(bind-key "C-c M-l" 'reload-init-file)
|
(bind-key "C-c M-l" 'reload-init-file)
|
||||||
|
(bind-key "M-#" 'query-replace) ; default is to cryptic on qwertz
|
||||||
|
|
||||||
;; surpress bloat messages
|
;; surpress bloat messages
|
||||||
(setq inhibit-startup-message t
|
(setq inhibit-startup-message t
|
||||||
@@ -21,6 +23,9 @@
|
|||||||
inhibit-startup-echo-area-message t
|
inhibit-startup-echo-area-message t
|
||||||
inhibit-splash-screen 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
|
;; line wrapping
|
||||||
(setq new-line-add-newlines nil)
|
(setq new-line-add-newlines nil)
|
||||||
(setq-default truncate-lines t)
|
(setq-default truncate-lines t)
|
||||||
@@ -33,13 +38,6 @@
|
|||||||
;; to window panes organized horizontally
|
;; to window panes organized horizontally
|
||||||
;; (split-window-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
|
;; enable 'linux' as default c-mode minor mode
|
||||||
(add-hook 'c-mode-common-hook
|
(add-hook 'c-mode-common-hook
|
||||||
'linux)
|
'linux)
|
||||||
@@ -73,4 +71,5 @@
|
|||||||
(fset 'yes-or-no-p 'y-or-n-p)
|
(fset 'yes-or-no-p 'y-or-n-p)
|
||||||
|
|
||||||
(provide '00-my-setup)
|
(provide '00-my-setup)
|
||||||
|
;; End:
|
||||||
;;; 00-my-setup.el ends here
|
;;; 00-my-setup.el ends here
|
||||||
|
|||||||
Reference in New Issue
Block a user