I've been playing around with ranger in emacs and I'm really liking it for browsing new codebases. I would like to get syntax highlighting working, as it does when using ranger in a terminal. I'm not seeing much documentation around getting it working in ranger code previews in emacs.
MacOS
$ brew install ranger
$ brew install highlight
$ ranger --copy-config=all
$ ranger
this installs and launches ranger from the terminal and does syntax highlighting when I select most files containing code (.sh
, .py
, .go
, .json
, etc) . Also populated ~/.config/ranger
with scope.sh
, etc
Emacs init.el
(use-package ranger :ensure t)
(use-package highlight :ensure t)
ranger works great in emacs when I launch using M-x ranger
, but I have no syntax highlighting when I select any files containing python, bash, go, etc code.