Merge branch 'master' of https://git.zom.bi/madmaurice/configfiles
This commit is contained in:
commit
73b6ff93cc
2 changed files with 24 additions and 2 deletions
20
emacs/.emacs
20
emacs/.emacs
|
@ -174,8 +174,8 @@
|
||||||
(evil-define-key 'normal neotree-mode-map (kbd "c") 'neotree-rename-node)
|
(evil-define-key 'normal neotree-mode-map (kbd "c") 'neotree-rename-node)
|
||||||
(evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter)
|
(evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter)
|
||||||
(evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter)
|
(evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter)
|
||||||
(evil-define-key 'normal neotree-mode-map (kbd "q") 'neotree-hide))
|
(evil-define-key 'normal neotree-mode-map (kbd "q") 'neotree-hide)
|
||||||
|
(evil-define-key 'normal neotree-mode-map (kbd "DEL") 'neotree-select-up-node))
|
||||||
|
|
||||||
;; Cursor centered
|
;; Cursor centered
|
||||||
(use-package centered-cursor-mode
|
(use-package centered-cursor-mode
|
||||||
|
@ -267,6 +267,22 @@
|
||||||
|
|
||||||
(global-set-key (kbd "<C-tab>") 'cycle-window)
|
(global-set-key (kbd "<C-tab>") 'cycle-window)
|
||||||
|
|
||||||
|
;; Exit prompt
|
||||||
|
(defun foreach (alist func)
|
||||||
|
(while alist
|
||||||
|
(progn
|
||||||
|
(funcall func (car alist))
|
||||||
|
(setq alist (cdr alist)))))
|
||||||
|
|
||||||
|
;(defun emacs-exit-prompt ()
|
||||||
|
; (foreach
|
||||||
|
; (buffer-list)
|
||||||
|
; (lambda (buffer)
|
||||||
|
; (cond
|
||||||
|
; ((string-match "^\\*.*\\*$" (buffer-name buffer)) nil)
|
||||||
|
; ((null (buffer-modified-p buffer)) nil)
|
||||||
|
; (t nil)))))
|
||||||
|
|
||||||
;; Latex german
|
;; Latex german
|
||||||
(quail-define-package "latex-german" "UTF-8" "LaGe" t
|
(quail-define-package "latex-german" "UTF-8" "LaGe" t
|
||||||
"Transforms umlauts to the better latex notation.
|
"Transforms umlauts to the better latex notation.
|
||||||
|
|
6
emacs/.emacs.d/snippets/python-mode/ifmain
Normal file
6
emacs/.emacs.d/snippets/python-mode/ifmain
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: ifmain
|
||||||
|
# key: ifmain
|
||||||
|
# --
|
||||||
|
if __name__ == "__main__":
|
||||||
|
$0
|
Loading…
Reference in a new issue