 (use-package go-eldoc
   :ensure go-eldoc
   :commands go-eldoc-setup
+  :requires go-mode
   :config (add-hook 'go-mode-hook 'go-eldoc-setup))
 
 (use-package go-add-tags

(global-set-key (kbd "C-c t") 'multi-term)
(setq multi-term-program-switches "--login")
(put 'magit-clean 'disabled nil)


(use-package almost-mono-themes)

(defun get-frame-name (&optional frame)
  (interactive)
  "Return the string that names FRAME (a frame).  Default is selected frame."
  (unless frame (setq frame (selected-frame)))
  (if (framep frame)
      (cdr (assq 'name (frame-parameters frame)))
    (error "Function `get-frame-name': Argument not a frame: `%s'" frame)))

;; from https://nicolas.petton.fr/blog/emacs-dark-window-decoration.html
(defun set-selected-frame-dark-window-decoration ()
  (interactive)
  (let ((frame-name (get-frame-name (selected-frame))))
    (call-process-shell-command (concat "xprop -f _GTK_THEME_VARIANT 8u -set _GTK_THEME_VARIANT \"dark\" -name \"" frame-name "\""))))

(defun hrs/apply-theme ()
  (interactive)
  (load-theme 'almost-mono-black t)
  (if (window-system)
      (set-selected-frame-dark-window-decoration))
  (transparency 100))

(if (daemonp)
