{"id":13646731,"url":"https://github.com/zk-phi/sublimity","last_synced_at":"2025-04-05T18:07:13.110Z","repository":{"id":7965602,"uuid":"9364764","full_name":"zk-phi/sublimity","owner":"zk-phi","description":"Smooth-scrolling and minimap like sublime editor","archived":false,"fork":false,"pushed_at":"2020-12-12T01:21:05.000Z","size":144,"stargazers_count":501,"open_issues_count":23,"forks_count":26,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-29T17:07:28.375Z","etag":null,"topics":["emacs"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zk-phi.png","metadata":{"files":{"readme":"Readme.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-11T07:39:27.000Z","updated_at":"2025-03-25T10:51:07.000Z","dependencies_parsed_at":"2022-08-17T21:20:17.331Z","dependency_job_id":null,"html_url":"https://github.com/zk-phi/sublimity","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-phi%2Fsublimity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-phi%2Fsublimity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-phi%2Fsublimity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-phi%2Fsublimity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zk-phi","download_url":"https://codeload.github.com/zk-phi/sublimity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378142,"owners_count":20929296,"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":["emacs"],"created_at":"2024-08-02T01:03:04.415Z","updated_at":"2025-04-05T18:07:13.077Z","avatar_url":"https://github.com/zk-phi.png","language":"Emacs Lisp","readme":"* sublimity.el\n\nsublime 風のスムーススクロール、ミニマップ、集中モード\n\nsmooth-scrolling, minimap and distraction-free mode (inspired by the\nsublime editor)\n\n** Screencast\n\n[[screencast.png]]\n\n** Installation\n\nRequire this script and some of =sublimity-scroll=, =sublimity-map=\nand =sublimity-attractive=.\n\n: (require 'sublimity)\n: ;; (require 'sublimity-scroll)\n: ;; (require 'sublimity-map) ;; experimental\n: ;; (require 'sublimity-attractive)\n\nthen call command =M-x sublimity-mode= (or put the following\nexpression in your init file).\n\n: (sublimity-mode 1)\n\n** Notes\n\nWhen you turn =sublimity-mode= on, =auto-hscroll-mode= is\nautomatically disabled, and =sublimity-auto-hscroll-mode= will work\ninstead. Thus, to disable horizontal scrolling, set\n=sublimity-auto-hscroll-mode= but not =auto-hscroll-mode= while\n=sublimity-mode= is turned on.\n\n=sublimity-scroll= currently requires an unset/zero =scroll-margin=.\n\n** Customization\n*** sublimity-scroll (smooth scrolling)\n\nYou may configure the speed of smooth-scroll by setting two variables.\n\n: (setq sublimity-scroll-weight 10\n:       sublimity-scroll-drift-length 5)\n\nScroll is basically divided into (weight + drift-length) steps. for\nexample, with the configuration above, 100 lines of scrolling is\ndivided into 15 (= 10 + 5) steps\n\n: (17 15 14 12 11 8 7 5 4 2 1 1 1 1 1)\n\nand it looks smoother than 1 step scroll. Note that last 5 steps are\nall 1 line scrolls, because drift-length is set 5. So you may make\nscroll more smooth by setting drift-length greater. try :\n\n: (setq sublimity-scroll-weight 5\n:       sublimity-scroll-drift-length 10)\n\nWith the configuration above, scroll is divided into 15 steps again,\n\n: (30 24 18 12 6 1 1 1 1 1 1 1 1 1 1)\n\nbut the last *10* steps are all 1 line scrolls. this looks smoother\nbut perhaps more annoying for some users.\n\nFor fast computers where the smooth scrolling effect happens too\nquickly, you can configure a small delay (in seconds) that occurs\nbetween scroll steps:\n\n: (setq sublimity-scroll-vertical-frame-delay 0.01)\n\n*** sublimity-map (minimap, experimental)\n**** sublimity-map-size, fraction, text-scale\n\n: (setq sublimity-map-size 20)\n: (setq sublimity-map-fraction 0.3)\n: (setq sublimity-map-text-scale -7)\n\n=sublimity-map-fraction= defines the maximum fraction of width that\nminimap can get. =sublimity-map-text-scale= is passed to\n=text-scale-set= on minimap setup.\n\n**** sublimity-map-setup-hook\n\n: (add-hook 'sublimity-map-setup-hook\n:           (lambda ()\n:             (setq buffer-face-mode-face '(:family \"Monospace\"))\n:             (buffer-face-mode)))\n\n=sublimity-map-setup-hook= will run when minimap is created.\n\n**** sublimity-map-set-delay\n\n: (sublimity-map-set-delay 5)\n\nWith the setting above, minimap is displayed after 5 seconds of idle\ntime. When =sublimity-map-set-delay= is called with =nil=, then\nminimap is shown with no delay. This defers from setting delay to 0,\nespecially when used with sublimity-scroll, in the sense that minimap\nlooks not deleted at all but gets worse performance.\n\n*** sublimity-attractive (distraction-free mode)\n**** sublimity-attractive-centering-width\n\n: (setq sublimity-attractive-centering-width 110)\n\nWhen a positive integer is set, buffer width is truncated to this\nvalue and drawn centered. To cancel this feature, set this value nil.\n\n**** sublimity-attractive-hide-xxxx\n\nFollowing functions are available to hide some UI parts.\n\n: (sublimity-attractive-hide-bars)\n: (sublimity-attractive-hide-vertical-border)\n: (sublimity-attractive-hide-fringes)\n: (sublimity-attractive-hide-modelines)\n","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk-phi%2Fsublimity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzk-phi%2Fsublimity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk-phi%2Fsublimity/lists"}