(py|rb)env version in modeline + define-builder macro
This commit is contained in:
parent
979472385b
commit
c27dfd5540
10 changed files with 89 additions and 38 deletions
|
@ -5,8 +5,8 @@
|
|||
:interpreter "go"
|
||||
:init
|
||||
(add-hook! go-mode '(emr-initialize flycheck-mode))
|
||||
(build-for! go-mode "go build")
|
||||
:config
|
||||
(define-builder! go-mode "go build")
|
||||
(bind! :map go-mode-map
|
||||
:n "gd" 'godef-jump
|
||||
:n "gD" 'godef-describe
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
:keymap (make-sparse-keymap)
|
||||
(add-yas-minor-mode! 'love-mode))
|
||||
(associate! love-mode :files ("main.lua") :in (lua-mode))
|
||||
(build-for! love-mode "open -a love.app '%s'" "main.lua")
|
||||
(define-builder! love-mode "open -a love.app '%s'" "main.lua")
|
||||
|
||||
(provide 'module-lua)
|
||||
;;; module-lua.el ends here
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
python-environment-directory narf-temp-dir
|
||||
python-shell-interpreter "ipython")
|
||||
:config
|
||||
(define-env-command! python-mode "pyenv version | cut -d' ' -f1")
|
||||
(define-key python-mode-map (kbd "DEL") nil)) ; interferes with smartparens
|
||||
|
||||
(use-package nose
|
||||
|
@ -28,6 +29,7 @@
|
|||
:n "tV" 'nosetests-pdb-module)))
|
||||
|
||||
(use-package anaconda-mode
|
||||
:diminish anaconda-mode
|
||||
:defines (anaconda-mode-map anaconda-nav-mode-map)
|
||||
:functions (anaconda-mode-running-p)
|
||||
:init (add-hook! python-mode '(anaconda-mode eldoc-mode))
|
||||
|
|
|
@ -9,8 +9,9 @@
|
|||
:interpreter "ruby"
|
||||
:init
|
||||
(add-hook! ruby-mode '(narf|enable-tab-width-2 flycheck-mode))
|
||||
(build-for! ruby-mode "rake %s" "Rakefile")
|
||||
:config
|
||||
(define-builder! ruby-mode "rake %s" "Rakefile")
|
||||
(define-env-command! ruby-mode "rbenv version | cut -d' ' -f1")
|
||||
;; Formatting
|
||||
(setq ruby-indent-level 2
|
||||
ruby-deep-indent-paren t)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
(use-package rust-mode
|
||||
:mode "\\.rs$"
|
||||
:config
|
||||
(build-for! rust-mode "cargo run" "Cargo.toml")
|
||||
(define-builder! rust-mode "cargo run" "Cargo.toml")
|
||||
(use-package flycheck-rust
|
||||
:config (add-hook! rust-mode 'flycheck-mode))
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
;;; module-vim.el
|
||||
|
||||
(use-package vimrc-mode
|
||||
:mode (("/\\.?g?vimrc$" . vimrc-mode)
|
||||
("\\.vim$" . vimrc-mode)))
|
||||
:mode ("/\\.?g?vimrc$" "\\.vim$" "/\\.vim/rc/.+$"))
|
||||
|
||||
(provide 'module-vim)
|
||||
;;; module-vim.el ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue