open-conf` an Emacs package, allows you to open files quickly via M-x command with given alias.
It will be in the Melpa in next days.
Put open-conf.el
in your load-path, and eval (require 'open-conf')
.
Also you have to define your shortcuts via defun-open-conf
function
(defun-open-conf "bashrc" "~/.bashrc")
(defun-open-conf "etc-hosts-root" "/sudo:root@localhost:/etc/hosts") ;; Open file with root
Easy try with use-package
(use-package open-conf
:ensure t
:config
(progn
(defun-open-conf "bashrc" "~/.bashrc")
(defun-open-conf "etc-hosts-root" "/sudo:root@localhost:/etc/hosts"))) ;; Open file with root
(use-package open-conf
:straight '(open-conf
:type git
:host github
:repo "enisozgen/open-conf")
:config
(defun-open-conf "bashrc" "~/.bashrc")
(defun-open-conf "etc-hosts-root" "/sudo:root@localhost:/etc/hosts")) ;; Open file with root