   ;; https://github.com/bmag/imenu-list
   ;; Emacs plugin to show the current buffer's imenu entries
   :bind (:map prog-mode-map
+	      ("C-c t i" . danylo/imenu-list-jump)
+	      :map org-mode-map
 	      ("C-c t i" . danylo/imenu-list-jump)
 	      :map imenu-list-major-mode-map
 	      ("C-c t i" . danylo/imenu-list-jump))

	   "# Returns\n"
	   "- `bar`: description.")
   "\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)
      (progn
	(fill-region (region-beginning) (region-end))
	(deactivate-mark))
    (unless (danylo/fill-julia-docstring)
      (save-excursion
	(let ((start (progn (forward-line 0) (point)))
	      (end (progn (forward-line) (point))))
	  (fill-region start end))))))

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


  (setq org-startup-folded nil
	;;org-ellipsis "..." ;; " ▾"
	org-src-tab-acts-natively t
	org-fontify-quote-and-verse-blocks t
	;; LaTeX options
	org-startup-with-latex-preview nil
	;; minuted setup: https://emacs.stackexchange.com/a/27984/13661
	org-latex-listings 'minted
	org-latex-packages-alist '(("" "minted"))
	org-latex-pdf-process
	'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
          "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f")
	;; Jumping around headings
	org-goto-interface 'outline-path-completionp
	org-outline-path-complete-in-steps nil
	org-imenu-depth 6
	))

(with-eval-after-load "org"
  (define-key org-mode-map [remap fill-paragraph] nil)
