parent
30206cf80d
commit
e6a0ffc8d0
2 changed files with 1 additions and 51 deletions
|
@ -36,9 +36,6 @@
|
||||||
(depends-on "emms")
|
(depends-on "emms")
|
||||||
(depends-on "eshell-fringe-status" :git "git://github.com/ryuslash/eshell-fringe-status.git")
|
(depends-on "eshell-fringe-status" :git "git://github.com/ryuslash/eshell-fringe-status.git")
|
||||||
(depends-on "esxml")
|
(depends-on "esxml")
|
||||||
(depends-on "evil")
|
|
||||||
(depends-on "evil-nerd-commenter")
|
|
||||||
(depends-on "evil-surround")
|
|
||||||
(depends-on "eww-lnum")
|
(depends-on "eww-lnum")
|
||||||
(depends-on "expand-region")
|
(depends-on "expand-region")
|
||||||
(depends-on "feature-mode")
|
(depends-on "feature-mode")
|
||||||
|
|
|
@ -141,17 +141,6 @@ MODE1 is enabled and vice-versa."
|
||||||
"Set the `disabled' property for each item in FUNCTIONS to nil."
|
"Set the `disabled' property for each item in FUNCTIONS to nil."
|
||||||
(mapc #'(lambda (f) (put f 'disabled nil)) functions))
|
(mapc #'(lambda (f) (put f 'disabled nil)) functions))
|
||||||
|
|
||||||
(defun oni:maybe-switch-to-normal-state ()
|
|
||||||
"Switch the current buffer to normal state.
|
|
||||||
|
|
||||||
Only do this when the mode is not in emacs state by default."
|
|
||||||
(unless (memql major-mode (oni:modes-starting-in 'emacs))
|
|
||||||
(evil-normal-state)))
|
|
||||||
|
|
||||||
(defun oni:modes-starting-in (state)
|
|
||||||
"Get a list of the modes whose default state is STATE."
|
|
||||||
(symbol-value (evil-state-property state :modes)))
|
|
||||||
|
|
||||||
;;;; Module-specific settings
|
;;;; Module-specific settings
|
||||||
|
|
||||||
(auto-init appt)
|
(auto-init appt)
|
||||||
|
@ -204,11 +193,6 @@ Only do this when the mode is not in emacs state by default."
|
||||||
(with-eval-after-load 'cc-mode
|
(with-eval-after-load 'cc-mode
|
||||||
(define-key c-mode-map (kbd "<f9>") 'compile))
|
(define-key c-mode-map (kbd "<f9>") 'compile))
|
||||||
|
|
||||||
(stante-after colemak-evil
|
|
||||||
(define-key evil-insert-state-map (kbd "C-g") #'evil-normal-state)
|
|
||||||
(define-key evil-replace-state-map (kbd "C-g") #'evil-normal-state)
|
|
||||||
(define-key evil-visual-state-map (kbd "C-g") #'evil-normal-state))
|
|
||||||
|
|
||||||
(stante-after compile
|
(stante-after compile
|
||||||
(setq compilation-scroll-output t))
|
(setq compilation-scroll-output t))
|
||||||
|
|
||||||
|
@ -271,32 +255,6 @@ Only do this when the mode is not in emacs state by default."
|
||||||
(add-to-list 'eshell-output-filter-functions 'oni:eshell-buttonize-url)
|
(add-to-list 'eshell-output-filter-functions 'oni:eshell-buttonize-url)
|
||||||
(add-to-list 'eshell-output-filter-functions #'eshell-truncate-buffer))
|
(add-to-list 'eshell-output-filter-functions #'eshell-truncate-buffer))
|
||||||
|
|
||||||
(stante-after evil
|
|
||||||
(evil-define-operator oni:evil-sort-lines-operator (beg end)
|
|
||||||
"Sort text."
|
|
||||||
:move-point nil
|
|
||||||
:type line
|
|
||||||
(sort-lines nil beg end))
|
|
||||||
|
|
||||||
(mapc (lambda (mode) (evil-set-initial-state mode 'emacs))
|
|
||||||
'(jabber-roster-mode grep-mode avandu-overview-mode
|
|
||||||
avandu-article-mode gnus-summary-mode
|
|
||||||
gnus-article-mode gnus-group-mode
|
|
||||||
magit-status-mode magit-key-mode
|
|
||||||
sql-interactive-mode Info-mode
|
|
||||||
jabber-chat-mode diff-mode prodigy-mode
|
|
||||||
calculator-mode messages-buffer-mode
|
|
||||||
help-mode prodigy-view-mode eww-mode))
|
|
||||||
(evil-set-initial-state 'git-commit-mode 'insert)
|
|
||||||
(add-hook 'org-capture-mode-hook #'evil-insert-state)
|
|
||||||
(require 'evil-nerd-commenter)
|
|
||||||
(define-key evil-normal-state-map ",," 'evilnc-comment-operator)
|
|
||||||
(define-key evil-normal-state-map ",," 'evilnc-comment-operator)
|
|
||||||
(define-key evil-normal-state-map ",s" 'oni:evil-sort-lines-operator)
|
|
||||||
(add-hook 'before-save-hook #'oni:maybe-switch-to-normal-state)
|
|
||||||
(evil-declare-key 'motion org-mode-map (kbd "RET") #'org-return)
|
|
||||||
(evil-declare-key 'normal outline-minor-mode-map (kbd "TAB") #'oni:outline-toggle-entry))
|
|
||||||
|
|
||||||
(stante-after eww
|
(stante-after eww
|
||||||
(setq eww-download-directory ; Don't go to ~/Downloads
|
(setq eww-download-directory ; Don't go to ~/Downloads
|
||||||
"~/downloads/"))
|
"~/downloads/"))
|
||||||
|
@ -829,12 +787,7 @@ Only do this when the mode is not in emacs state by default."
|
||||||
(projectile-global-mode)
|
(projectile-global-mode)
|
||||||
(hes-mode)
|
(hes-mode)
|
||||||
|
|
||||||
(global-wakatime-mode)
|
(global-wakatime-mode))
|
||||||
(evil-mode)
|
|
||||||
(kill-local-variable 'mode-line-format)
|
|
||||||
(when (string-equal (system-name) "drd")
|
|
||||||
(require 'evil-colemak))
|
|
||||||
(global-evil-surround-mode))
|
|
||||||
|
|
||||||
(with-eval-after-load 'ruby
|
(with-eval-after-load 'ruby
|
||||||
(global-rinari-mode))
|
(global-rinari-mode))
|
||||||
|
|
Loading…
Reference in a new issue