-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a241276
commit 4018009
Showing
7 changed files
with
104 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
;; Automatically insert asterisk in a comment when enabled | ||
(defun my-scala/newline-and-indent-with-asterisk () | ||
(interactive) | ||
(newline-and-indent) | ||
(scala-indent:insert-asterisk-on-multiline-comment)) | ||
|
||
(defun my-scala/scala-join-line () | ||
"Adapt `scala-indent:join-line' to behave more like evil's line join. | ||
`scala-indent:join-line' acts like the vanilla `join-line', | ||
joining the current line with the previous one. The vimmy way is | ||
to join the current line with the next. | ||
Try to move to the subsequent line and then join. Then manually move | ||
point to the position of the join." | ||
(interactive) | ||
(let (join-pos) | ||
(save-excursion | ||
(goto-char (line-end-position)) | ||
(unless (eobp) | ||
(forward-line) | ||
(call-interactively 'scala-indent:join-line) | ||
(setq join-pos (point)))) | ||
|
||
(when join-pos | ||
(goto-char join-pos)))) | ||
|
||
(defun my-scala/toggle-indent () | ||
(interactive) | ||
(when (eq major-mode 'scala-mode) | ||
(if (eq indent-line-function #'indent-relative) | ||
(progn | ||
(message "Toggle indent: Scala indent") | ||
(setq indent-line-function #'scala-indent:indent-line)) | ||
|
||
(message "Toggle indent: relative to previous line") | ||
(setq indent-line-function #'indent-relative)))) | ||
|
||
(defun my-sbt/sbt-do-reload () | ||
"Execute the sbt `reload' command for the project." | ||
(interactive) | ||
(sbt:command "reload")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule om
updated
from 5b3d6f to 1a60e4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# -*- mode: snippet -*- | ||
#name : find0 | ||
#key : find0 | ||
#contributor : Aleksander Boruch-Gruszecki | ||
# -- | ||
|
||
find $1 -print0 $0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- mode: snippet -*- | ||
#name : read0 | ||
#key : read0 | ||
#contributor : Aleksander Boruch-Gruszecki | ||
# -- | ||
read -d '' -r $0 |