We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b0dc2a + b175798 commit 61fc785Copy full SHA for 61fc785
elixir-mode.el
@@ -505,6 +505,17 @@ just return nil."
505
(let* ((output (elixir-mode--execute-elixir-with-code-string-to-quoted string)))
506
(elixir-quoted--initialize-buffer output)))
507
508
+(defun elixir-mode-fill-doc-string ()
509
+ (interactive)
510
+ (save-excursion
511
+ (re-search-backward "@\\(?:module\\)?doc +\"\"\"" nil t)
512
+ (re-search-forward "\"\"\"" nil t)
513
+ (set-mark (point))
514
515
+ (re-search-backward "^ *\"\"\"" nil t)
516
+ (backward-char)
517
+ (fill-region (point) (mark))))
518
+
519
(defun elixir-mode-eval-on-region (beg end)
520
"Evaluate the Elixir code on the marked region.
521
Argument BEG Start of the region.
0 commit comments