Compare commits
4 Commits
813d5f9e17
...
245a3b0d3b
Author | SHA1 | Date | |
---|---|---|---|
245a3b0d3b | |||
f9a67dde68 | |||
1327019fdb | |||
951024ed40 |
@ -70,4 +70,12 @@
|
|||||||
:general
|
:general
|
||||||
([remap dabbrev-expand] #'hippie-expand))
|
([remap dabbrev-expand] #'hippie-expand))
|
||||||
|
|
||||||
|
(use-package grep
|
||||||
|
:straight (:type built-in)
|
||||||
|
:if (executable-find "rg")
|
||||||
|
:config
|
||||||
|
(setq grep-program "rg")
|
||||||
|
:custom
|
||||||
|
(grep-command "rg --color=always --with-filename --line-number --null -e "))
|
||||||
|
|
||||||
(provide 'init-built-ins)
|
(provide 'init-built-ins)
|
||||||
|
@ -18,7 +18,16 @@
|
|||||||
:commands (inf-ruby inf-ruby-console-auto)
|
:commands (inf-ruby inf-ruby-console-auto)
|
||||||
:general
|
:general
|
||||||
([remap inf-ruby] #'inf-ruby-console-auto)
|
([remap inf-ruby] #'inf-ruby-console-auto)
|
||||||
:hook (after-init . inf-ruby-switch-setup))
|
:hook (after-init . inf-ruby-switch-setup)
|
||||||
|
:config
|
||||||
|
(defun inf-ruby-process-carriage-return (output)
|
||||||
|
(let ((processed (replace-regexp-in-string ".*\r" "" output)))
|
||||||
|
(if (string-match-p "\\`\n" processed)
|
||||||
|
(replace-regexp-in-string "\\`\n" "" processed)
|
||||||
|
processed)))
|
||||||
|
(defun inf-ruby-carriage-return-hook ()
|
||||||
|
(add-hook 'comint-preoutput-filter-functions #'inf-ruby-process-carriage-return nil t))
|
||||||
|
(add-hook 'inf-ruby-mode-hook #'inf-ruby-carriage-return-hook))
|
||||||
|
|
||||||
(use-package rbenv
|
(use-package rbenv
|
||||||
:hook (after-init . global-rbenv-mode)
|
:hook (after-init . global-rbenv-mode)
|
||||||
@ -60,9 +69,13 @@
|
|||||||
"Runs RSpec on all related specs for the Ruby files changed between the current branch and TARGET-BRANCH."
|
"Runs RSpec on all related specs for the Ruby files changed between the current branch and TARGET-BRANCH."
|
||||||
(interactive)
|
(interactive)
|
||||||
(rspec--run-verify-changed t))
|
(rspec--run-verify-changed t))
|
||||||
|
(defun rspec-dired-verify-marked ()
|
||||||
|
(interactive)
|
||||||
|
(rspec-run-multiple-files (dired-get-marked-files) (rspec-core-options)))
|
||||||
:general
|
:general
|
||||||
(rspec-mode-map "C-c , g" #'rspec-verify-changed
|
(rspec-mode-map "C-c , g" #'rspec-verify-changed
|
||||||
"C-c , G" #'rspec-verify-changed-related)
|
"C-c , G" #'rspec-verify-changed-related)
|
||||||
|
(rspec-dired-mode-map "C-c , m" #'rspec-dired-verify-marked)
|
||||||
(rspec-verifiable-mode-map "C-c , g" #'rspec-verify-changed
|
(rspec-verifiable-mode-map "C-c , g" #'rspec-verify-changed
|
||||||
"C-c , G" #'rspec-verify-changed-related)
|
"C-c , G" #'rspec-verify-changed-related)
|
||||||
:custom
|
:custom
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
;; Buffer and window layout management
|
;; Buffer and window layout management
|
||||||
(setopt switch-to-buffer-in-dedicated-window 'pop
|
(setopt switch-to-buffer-in-dedicated-window 'pop
|
||||||
split-height-threshold 116
|
split-height-threshold 116
|
||||||
|
split-width-threshold 216
|
||||||
window-sides-slots '(1 0 0 1)
|
window-sides-slots '(1 0 0 1)
|
||||||
display-buffer-alist '(("\\*Help\\*"
|
display-buffer-alist '(("\\*Help\\*"
|
||||||
(display-buffer-reuse-window
|
(display-buffer-reuse-window
|
||||||
|
Loading…
Reference in New Issue
Block a user