diff --git a/emacs/.emacs b/emacs/.emacs index 213472f..832df3c 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -35,7 +35,7 @@ '(menu-bar-mode nil) '(package-selected-packages (quote - (swiper neotree centered-cursor-mode ivy avy heroku-theme auto-complete use-package yasnippet evil-surround org evil-magit magit makefile-runner evil))) + (shell-pop swiper neotree centered-cursor-mode ivy avy heroku-theme auto-complete use-package yasnippet evil-surround org evil-magit magit makefile-runner evil))) '(scroll-bar-mode nil) '(shell-pop-shell-type (quote @@ -164,7 +164,8 @@ (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 "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 (use-package centered-cursor-mode diff --git a/emacs/.emacs.d/snippets/python-mode/ifmain b/emacs/.emacs.d/snippets/python-mode/ifmain new file mode 100644 index 0000000..8cfb55d --- /dev/null +++ b/emacs/.emacs.d/snippets/python-mode/ifmain @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: ifmain +# key: ifmain +# -- +if __name__ == "__main__": + $0 \ No newline at end of file