            jar-path-osx)
           ((file-exists-p jar-path-linux)
            jar-path-linux)
-          ((error "Error: plantuml not installed on platform.")))))
+          ((error "Error: plantuml not installed on platform")))))
 
 (use-package ob-plantuml
   :commands org-babel-execute:plantuml


(add-hook 'term-mode-hook #'ar/term-mode-hook-function)

(defun ar/comment-dwim ()
  "Comment current line or region."
  (interactive)

                        (format-time-string "[%Y-%m-%d %a]")))

(defun ar/org-confirm-babel-evaluate (lang body)
  "Do not confirm org babel evaluation for LANG and BODY."
  (and
   (not (string= lang "emacs-lisp"))
   (not (string= lang "plantuml"))))
