 (defcustom snails-mode-hook '()
   "snails mode hook."
   :type 'hook
-  :group 'snails)
-
-(defface snails-face-backend-name
-  '((t (:foreground "Gold" :bold t :height 3)))
-  "Face backend name"
   :group 'snails)
 
 (defvar snails-mode-map

      (set-frame-parameter nil 'undecorated t)
      (split-window (selected-window) (nth 3 (window-edges (selected-window))) nil t)
      (switch-to-buffer snails-input-buffer)
      (other-window 1)
      (switch-to-buffer snails-content-buffer)
      (other-window 1)

      (add-hook 'after-change-functions 'snails-monitor-input nil t)
      )

        (setq snails-candiate-list-update-p t)
        ))))

(defun snails-get-backend-names ()
  (mapcar (lambda (b) (eval (cdr (assoc "name" (eval b))))) snails-backends))

(defun snails-render-bufer ()
  (with-current-buffer snails-content-buffer
    (erase-buffer)

    (let ((candiate-index 0)
          (backend-names (snails-get-backend-names)))
      (dolist (candiate-list snails-candiate-list)
        (when candiate-list
          (insert (propertize
                   (format "%s\n" (nth candiate-index backend-names))
                   'face `(
                           :foreground "#3F90F7"
                           :weight 'bold
                           :height 130
                           :underline t
                           )))
          (dolist (candiate candiate-list)
            (insert (format "%s\n" (string-trim-left (car candiate)))))
          (insert "\n"))
        (setq candiate-index (+ candiate-index 1)))

