 	      ("C-c m s" . 'message-send)
 	      ("C-c C-c" . nil)
 	      ("C-c m a" . 'mail-add-attachment)
-	      ("C-c x s" . danylo/toggle-spellcheck)
 	      :map mu4e-main-mode-map
 	      ("C-c C-u" . danylo/get-mail)
 	      ("U" . danylo/get-mail))

			    (when (featurep 'filladapt)
			      (c-setup-filladapt))))
	 (python-mode . filladapt-mode)
	 (julia-mode . filladapt-mode)
	 (org-mode . filladapt-mode)
	 (text-mode . filladapt-mode))
  :bind (("M-q" . 'fill-paragraph)

	   "\n\n"
	   "Returns:\n")
   "\n\"\"\"" t))

(defun danylo/fill-julia-docstring ()
  "Fill a Julia function docstring.
Inspired from: https://tamaspapp.eu/post/emacs-julia-customizations/"
  (interactive)
  (let ((danylo/is~docstring nil))
    (save-excursion
      (let ((s (syntax-ppss)))
	(when (fourth s) (goto-char (ninth s))))
      (when (looking-at
	     (rx "\"\"\""
		 (group
		  (*? (or (not (any "\\"))
			  (seq "\\" anything))))
		 "\"\"\""))
	(let ((start (match-beginning 1))
	      (end (match-end 1)))
	  (pulse-momentary-highlight-region start end)
	  (fill-region start end)
	  (setq danylo/is~docstring t))))
    danylo/is~docstring))

(defun danylo/julia-fill-region ()
  "Fill-region for julia language."
  (interactive)
  (if (and transient-mark-mode mark-active)
      (fill-region (region-beginning) (region-end))
    (unless (danylo/fill-julia-docstring)
      (save-excursion
	(let ((start (progn
		       (forward-line 0)
		       (point)))
	      (end (progn
		     (forward-line)
		     (point))))
	  (fill-region start end))))))

;;; ..:: MATLAB ::..

