Edit with Emacs

Edit with Emacs

Allow user to edit web-page textareas with Emacs (and other editors).

Merlin
Additional files are visible only to premium users

manifest.json


{
  "update_url": "https://clients2.google.com/service/update2/crx",
  "name": "Edit with Emacs",
  "version": "1.17",
  "manifest_version": 2,
  "description": "Allow user to edit web-page textareas with Emacs (and other editors).",
  "browser_action": {
    "default_icon": "icons/emacs23-16x16.png"
  },
  "background": {
    "page": "html/background.html"
  },
  "permissions": [
    "clipboardRead",
    "contextMenus",
    "http://127.0.0.1/edit/*",
    "http://penguin.linux.test/edit/*",
    "notifications"
  ],
  "icons": {
    "48": "icons/emacs-48x48.png",
    "128": "icons/emacs.png"
  },
  "options_ui": {
    "page": "fancy-settings/source/index.html",
    "open_in_tab": true,
    "browser_style": true
  },
  "web_accessible_resources": [
    "icons/gumdrop.png",
    "icons/emacs23-16x16-red.png"
  ],
  "content_scripts": [
    {
      "matches": [
        "http://*/*",
        "https://*/*",
        "file://*/*"
      ],
      "css": [
        "css/textareas.css"
      ],
      "js": [
        "lib/jquery-3.6.0.min.js",
        "lib/jquery.color-2.1.2.min.js",
        "lib/mutation_summary.js",
        "javascript/textareas.js"
      ],
      "run_at": "document_idle",
      "all_frames": true
    }
  ],
  "commands": {
    "edit-textbox": {
      "suggested_key": {
        "default": "Alt+E",
        "linux": "Alt+E",
        "mac": "Alt+E"
      },
      "description": "Edit the current textarea with Emacs"
    },
    "activate-emacs": {
      "suggested_key": {
        "default": "Ctrl+Shift+E",
        "linux": "Ctrl+Shift+E",
        "mac": "Command+E"
      },
      "description": "Activate Emacs with contents of clipboard"
    }
  }
}