{"id":13646552,"url":"https://github.com/miketz/mor","last_synced_at":"2025-04-21T21:30:57.116Z","repository":{"id":88801508,"uuid":"64452147","full_name":"miketz/mor","owner":"miketz","description":"mode on region","archived":false,"fork":false,"pushed_at":"2021-12-25T20:04:53.000Z","size":115,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-09T20:37:39.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miketz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-07-29T05:08:57.000Z","updated_at":"2024-03-26T04:33:20.000Z","dependencies_parsed_at":"2023-06-12T16:51:33.384Z","dependency_job_id":null,"html_url":"https://github.com/miketz/mor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miketz%2Fmor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miketz%2Fmor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miketz%2Fmor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miketz%2Fmor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miketz","download_url":"https://codeload.github.com/miketz/mor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250136642,"owners_count":21380870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:02:58.920Z","updated_at":"2025-04-21T21:30:56.838Z","avatar_url":"https://github.com/miketz.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"# mode on region\n\nPlease prefer the documentation in file **mode-on-region.el**.\nThis readme file may not be kept up to date.\n\n**mor-mode-on-region** copies a highlighted region to a tmp buffer and\nturns on the mode of your choice.\n\n**mor-prev-mode-on-region** does the same thing, but recalls the previously\nchosen mode.\n\nCopy the text back with **mor-copy-back**\n\nAbandon your edits with **mor-close-tmp-buffer**\n\n\nThis package is useful to work with code in mutli-lanuage files.  Such as\njavascript, css, and html mixed in one file.\n\nIt's also useful to interact with code in technical books; while viewing via\neww-mode, text-mode, info-mode, etc.\n\n\n# Installation\n\nPlace mode-on-region.el in folder /your/chosen/folder.\n\nThen add the following text to your .emacs or init.el file:\n\n    (add-to-list 'load-path \"/your/chosen/folder\")\n    (autoload #'mor-mode-on-region \"mode-on-region\" nil t)\n    (autoload #'mor-prev-mode-on-region \"mode-on-region\" nil t)\n    (autoload #'mor-curr-mode-on-region \"mode-on-region\" nil t)\n    ;; Recommended keybinds for vanilla Emacs.  Press \"C-c m\" with text highlighted.\n    (global-set-key (kbd \"C-c m\") #'mor-mode-on-region)\n    (global-set-key (kbd \"C-c .\") #'mor-prev-mode-on-region)\n    (global-set-key (kbd \"C-c r\") #'mor-curr-mode-on-region)\n    ;; Recommended key binds for evil users.  Press \"m\" in visual mode.\n    (eval-after-load 'evil\n      '(progn\n         (define-key evil-visual-state-map (kbd \"m\") #'mor-mode-on-region)\n         (define-key evil-visual-state-map (kbd \".\") #'mor-prev-mode-on-region)\n         (define-key evil-visual-state-map (kbd \"r\") #'mor-curr-mode-on-region)))\n    ;; Configure\n    (eval-after-load 'mode-on-region\n      '(progn\n         (setq mor-format-automatically-p nil)\n         (setq mor-fix-whitespace-p nil)\n         (setq mor-readonly-for-extra-protection-p t)\n         (custom-set-faces\n          `(mor-readonly-face\n            ((t (:background \"black\" :foreground \"red\" :strike-through t)))))\n         ;; recommended key binds for the tmp buffer.  Both Vanilla and Evil.\n         (define-key mor-tmp-buffer-mode-map (kbd \"C-c b\") #'mor-copy-back)\n         (define-key mor-tmp-buffer-mode-map (kbd \"C-c c\") #'mor-close-tmp-buffer)))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiketz%2Fmor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiketz%2Fmor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiketz%2Fmor/lists"}