39
loading...
This website collects cookies to deliver better user experience
M-x package-install RET grip-mode RET
.emacs
file or your init.el
file, whichever you use.;; Path to grip
(setq grip-binary-path "/absolute/path/to/grip")
;; in my case it is /home/rushan/.local/bin/grip
Note: If you don't know where grip is installed on your system, you can easily check using ~$ which grip
the output will be the absoulute path to grip.
markdown-mode
or org-mode
is activated:;; Start grip when opening a markdown/org buffer
(add-hook 'markdown-mode-hook #'grip-mode)
(add-hook 'org-mode-hook #'grip-mode)
;; set a browser for preview
(setq grip-url-browser "google-chrome")
nil
grip mode will open up in the system's default browser.Note: While specifying a name, the name should be the name of the executable program, which means that if you execute the name in shell then that browser should launch.
;; update the preview after file saves only, instead of after every text change.
(setq grip-update-after-change nil)
grip-mode
, other customizations can be found at grip's docs. But Wait! this is not all! If you tried to use grip-mode with this setup you'll notice that it works but it is extremely limited. ;; GitHub username for API authentication
(setq grip-github-user "your_username")
;; GitHub password or auth token for API auth
(setq grip-github-password "your_personal_access_token")
39