Giter VIP home page Giter VIP logo

vertico-posframe's Introduction

README of vertico-posframe

What is vertico-posframe

vertico-posframe is an vertico extension, which lets vertico use posframe to show its candidate menu.

NOTE: vertico-posframe requires Emacs 26 and do not support mouse click.

How to enable vertico-posframe

(require 'vertico-posframe)
(vertico-posframe-mode 1)

Tips

How to let vertico-posframe work well with vertico-multiform.

(setq vertico-multiform-commands
      '((consult-line
         posframe
         (vertico-posframe-poshandler . posframe-poshandler-frame-top-center)
         (vertico-posframe-border-width . 10)
         ;; NOTE: This is useful when emacs is used in both in X and
         ;; terminal, for posframe do not work well in terminal, so
         ;; vertico-buffer-mode will be used as fallback at the
         ;; moment.
         (vertico-posframe-fallback-mode . vertico-buffer-mode))
        (t posframe)))
(vertico-multiform-mode 1)

NOTE: vertico-posframe-mode will be activated/deactivated by vertico-multiform-mode dynamically when you add ‘posframe’ setting to vertico-multiform-commands, please do not enable vertico-posframe-mode globally at the moment.

To conditionally disable posframe

(setq vertico-multiform-commands
      '(
        (consult-line (:not posframe))
        (t posframe)
        ))

How to show fringe to vertico-posframe

(setq vertico-posframe-parameters
      '((left-fringe . 8)
        (right-fringe . 8)))

By the way, User can set any parameters of vertico-posframe with the help of `vertico-posframe-parameters’.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.