mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
refactor(text-editing): Improve string-inflection package setup
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
;;; Code:
|
||||
|
||||
(require 'siren-lisp)
|
||||
(require 'siren-string-inflection)
|
||||
|
||||
(defun siren-recompile-elc-on-save ()
|
||||
"Recompile your elc when saving an elisp file."
|
||||
@@ -36,6 +37,7 @@
|
||||
|
||||
(add-hook 'emacs-lisp-mode-hook #'siren-emacs-lisp-mode-setup)
|
||||
(add-to-list 'auto-mode-alist '("Cask\\'" . emacs-lisp-mode))
|
||||
(define-key emacs-lisp-mode-map (kbd "C-c C-u") 'string-inflection-all-cycle)
|
||||
|
||||
(provide 'siren-emacs-lisp)
|
||||
;;; siren-emacs-lisp.el ends here
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
(require 'siren-folding)
|
||||
(require 'siren-lsp)
|
||||
(require 'siren-projectile)
|
||||
(require 'siren-string-inflection)
|
||||
(require 'siren-toggle-quotes)
|
||||
|
||||
(add-to-list 'projectile-globally-ignored-directories "vendor/bundle")
|
||||
@@ -45,7 +46,8 @@
|
||||
("RET" . newline-and-indent)
|
||||
("C-c C-l" . goto-line)
|
||||
("C-M-f" . sp-ruby-forward-sexp)
|
||||
("C-M-b" . sp-ruby-backward-sexp))
|
||||
("C-M-b" . sp-ruby-backward-sexp)
|
||||
("C-c C-u" . string-inflection-ruby-style-cycle))
|
||||
|
||||
:hook
|
||||
(ruby-mode . siren-ruby-mode-setup)
|
||||
|
||||
@@ -8,9 +8,7 @@
|
||||
|
||||
(use-package string-inflection
|
||||
:bind
|
||||
("C-c C-u" . string-inflection-cycle)
|
||||
(:map emacs-lisp-mode-map
|
||||
("C-c C-u" . string-inflection-all-cycle)))
|
||||
("C-c C-u" . string-inflection-cycle))
|
||||
|
||||
(provide 'siren-string-inflection)
|
||||
;;; siren-string-inflection.el ends here
|
||||
|
||||
Reference in New Issue
Block a user