mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
feat(emacs): Basic emacs setup
This commit is contained in:
parent
2346c13564
commit
6edb5d9e90
7 changed files with 134 additions and 0 deletions
22
tools/emacs.d/lisp/init-package.el
Normal file
22
tools/emacs.d/lisp/init-package.el
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
;;; init-package.el
|
||||
|
||||
;; Manual Install Packages (plugins): Options > Manage Emacs Packages (Don't use this)
|
||||
|
||||
(global-company-mode 1) ; Enable company
|
||||
|
||||
;; Ensure use-package is installed (use-package: lazy load plugin manager)
|
||||
(unless (package-install 'use-package)
|
||||
(package-refresh-contents)
|
||||
(package-install 'use-package))
|
||||
|
||||
;; Plugins Here
|
||||
;; Company - Complete Anything
|
||||
(use-package company
|
||||
:ensure t
|
||||
:config
|
||||
(global-company-mode 1)
|
||||
(define-key company-active-map (kbd "C-n") 'company-select-next)
|
||||
(define-key company-active-map (kbd "C-p") 'company-select-previous))
|
||||
|
||||
|
||||
(provide 'init-package)
|
||||
Loading…
Add table
Add a link
Reference in a new issue