add emacs

This commit is contained in:
Aditya 2023-02-26 17:04:41 +05:30
parent 5e11af40c6
commit 17cb5e3f22
2 changed files with 35 additions and 0 deletions

34
emacs/.emacs Normal file
View file

@ -0,0 +1,34 @@
;; ~/.emacs
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(use-package zenburn-theme
:ensure t
:config
(load-theme 'zenburn t))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages '(auto-complete zenburn-theme use-package)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
(ac-config-default)
(setq-default tab-width 2)

1
emacs/init.el Normal file
View file

@ -0,0 +1 @@
(load-theme 'wheatgrass')