General cleanup
This commit is contained in:
parent
dc402f654e
commit
ae155a71a2
4 changed files with 14 additions and 4 deletions
|
@ -122,5 +122,10 @@
|
|||
(when (evil-visual-state-p)
|
||||
(evil-normal-state))))
|
||||
|
||||
;;;###autoload
|
||||
(defun narf/sp-point-is-template-p (id action context)
|
||||
(and (sp-in-code-p id action context)
|
||||
(sp-point-after-word-p id action context)))
|
||||
|
||||
(provide 'defuns-cc)
|
||||
;;; defuns-cc.el ends here
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
;;; module-haskell.el
|
||||
|
||||
(use-package haskell
|
||||
:mode ("\\.hs$" . haskell-mode)
|
||||
:mode (("\\.hs$" . haskell-mode)
|
||||
("\\.ghci$" . ghci-script-mode)
|
||||
("\\.cabal$" . haskell-cabal-mode))
|
||||
:init
|
||||
(define-repl! haskell-mode switch-to-haskell)
|
||||
(add-hook! haskell-mode '(interactive-haskell-mode flycheck-mode))
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
(define-docset! php-mode "php,laravel")
|
||||
(define-company-backend! php-mode '(php-extras-company))
|
||||
|
||||
(add-hook! php-mode 'flycheck-mode)
|
||||
(add-hook 'php-mode-hook 'flycheck-mode)
|
||||
(setq php-template-compatibility nil
|
||||
php-extras-eldoc-functions-file (concat narf-temp-dir "/php-extras-eldoc-functions"))
|
||||
:config
|
||||
|
|
|
@ -256,6 +256,10 @@
|
|||
:i "<M-backspace>" 'narf/backward-kill-to-bol-and-indent
|
||||
:i "<C-return>" 'evil-ret-and-indent
|
||||
|
||||
;; Emacsien motions for insert mode
|
||||
:i "C-b" 'backward-word
|
||||
:i "C-f" 'forward-word
|
||||
|
||||
;; escape from insert mode (more responsive than using key-chord-define)
|
||||
:irv "C-g" 'evil-normal-state
|
||||
|
||||
|
@ -348,8 +352,7 @@
|
|||
|
||||
;; Restores "dumb" indentation to the tab key. This rustles a lot of peoples' jimmies,
|
||||
;; apparently, but it's how I like it.
|
||||
(map! "C-b" 'backward-word
|
||||
:i "<tab>" 'narf/dumb-indent
|
||||
(map! :i "<tab>" 'narf/dumb-indent
|
||||
:i "<backtab>" 'narf/dumb-dedent
|
||||
:i "<C-tab>" 'indent-for-tab-command
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue