Compare commits
4 Commits
813d5f9e17
...
245a3b0d3b
Author | SHA1 | Date | |
---|---|---|---|
245a3b0d3b | |||
f9a67dde68 | |||
1327019fdb | |||
951024ed40 |
@ -70,4 +70,12 @@
|
||||
:general
|
||||
([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)
|
||||
|
@ -18,7 +18,16 @@
|
||||
:commands (inf-ruby inf-ruby-console-auto)
|
||||
:general
|
||||
([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
|
||||
: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."
|
||||
(interactive)
|
||||
(rspec--run-verify-changed t))
|
||||
(defun rspec-dired-verify-marked ()
|
||||
(interactive)
|
||||
(rspec-run-multiple-files (dired-get-marked-files) (rspec-core-options)))
|
||||
:general
|
||||
(rspec-mode-map "C-c , g" #'rspec-verify-changed
|
||||
"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
|
||||
"C-c , G" #'rspec-verify-changed-related)
|
||||
:custom
|
||||
|
@ -42,6 +42,7 @@
|
||||
;; Buffer and window layout management
|
||||
(setopt switch-to-buffer-in-dedicated-window 'pop
|
||||
split-height-threshold 116
|
||||
split-width-threshold 216
|
||||
window-sides-slots '(1 0 0 1)
|
||||
display-buffer-alist '(("\\*Help\\*"
|
||||
(display-buffer-reuse-window
|
||||
|
Loading…
Reference in New Issue
Block a user