 (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

;; (use-package dumb-jump
;;   :config
;;   (global-set-key (kbd "M-.") 'dumb-jump-go))

(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)))

(defun visit-dir-as-root (hostname)
  (interactive "shost: ")

  (setq frame-background-mode 'dark)
  (mapc 'frame-set-background-mode (list (selected-frame))))

(use-package auto-compile
  :config (auto-compile-on-load-mode))

