Coder Social home page Coder Social logo

exwm-firefox-evil's Introduction

https://melpa.org/packages/exwm-firefox-evil-badge.svg

exwm-firefox-evil - Evil-mode keys in firefox

exwm-firefox-evil makes firefox’s control scheme modal. It uses vi-like keys and doesn’t require any addons. It does this by implementing exwm-firefox-core which sends fake keys to firefox using exwm.

To get link-hints you have to download a link-hint addon to firefox and define a new function to send that key to firefox on call like those in exwm-firefox-core.

Install

(require 'exwm-firefox-evil)
;; Auto enable exwm-firefox-evil-mode on all firefox buffers
(add-hook 'exwm-manage-finish-hook 'exwm-firefox-evil-activate-if-firefox)

You also need to add escape to exwm-input-prefix-keys so that escape is passed to emacs instead of firefox.

(dolist (k `(
	     escape
	     ))
  (cl-pushnew k exwm-input-prefix-keys))

Keep in mind that this affects all exwm-applications. If you want to get your escape key back in those applications you could bind the escape key to (exwm-input--fake-key 'escape) in your own minor mode that activates in all exwm-buffers just like I did in this package. For the conditional statement to avoid firefox buffers, just negate the checks in the function exwm-firefox-evil-activate-if-firefox

Know bugs

Mouse clicks only works in insert state

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.