diff options
author | Aditya <bluenerd@protonmail.com> | 2023-02-26 17:04:41 +0530 |
---|---|---|
committer | Aditya <bluenerd@protonmail.com> | 2023-02-26 17:04:41 +0530 |
commit | 17cb5e3f22fe4a338a413f44309209d41ad4e5d3 (patch) | |
tree | 7850d7aeb3b99933e80e0b8cbb7f1c10502619d6 | |
parent | 5e11af40c6b399a6739918970d734e7205d3eeca (diff) |
add emacs
-rw-r--r-- | emacs/.emacs | 34 | ||||
-rw-r--r-- | emacs/init.el | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/emacs/.emacs b/emacs/.emacs new file mode 100644 index 0000000..37e95ad --- /dev/null +++ b/emacs/.emacs @@ -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) diff --git a/emacs/init.el b/emacs/init.el new file mode 100644 index 0000000..f995eae --- /dev/null +++ b/emacs/init.el @@ -0,0 +1 @@ +(load-theme 'wheatgrass') |