more cleanup. soon to be free of all nonsense

This commit is contained in:
Rostyslav Hnatyshyn (Student)
2021-09-15 15:23:51 -07:00
parent 070fbe7a6b
commit b2b734113c
5 changed files with 107 additions and 37 deletions
+28 -30
View File
@@ -5,7 +5,16 @@
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
;; emacs preferences
(setq-default cursor-type 'bar)
(global-hl-line-mode 1)
(menu-bar-mode -1)
(toggle-scroll-bar -1)
(tool-bar-mode -1)
(setq interprogram-cut-function nil)
(setq backup-directory-alist '(("" . "~/.emacs.d/backup")))
(eval-when-compile
(require 'use-package))
@@ -29,7 +38,7 @@ Return a list of installed packages or nil for every skipped package."
(or (file-exists-p package-user-dir)
(package-refresh-contents))
(ensure-package-installed 'smex 'magit `centaur-tabs `eglot `telephone-line `dashboard `multiple-cursors `flycheck `which-key `restart-emacs `doom-themes `rainbow-delimiters `neotree `all-the-icons)
(ensure-package-installed 'use-package 'smex 'magit 'centaur-tabs 'eglot 'telephone-line 'dashboard 'multiple-cursors 'flycheck 'which-key 'restart-emacs 'doom-themes 'rainbow-delimiters 'neotree 'all-the-icons)
(package-initialize)
(use-package company)
@@ -58,8 +67,7 @@ Return a list of installed packages or nil for every skipped package."
(when (fboundp 'windmove-default-keybindings)
(windmove-default-keybindings))
(setq-default cursor-type 'bar)
(setq backup-directory-alist '(("" . "~/.emacs.d/backup")))
(require 'which-key)
(which-key-mode)
(use-package dashboard
@@ -68,39 +76,29 @@ Return a list of installed packages or nil for every skipped package."
(setq dashboard-set-footer nil
dashboard-org-agenda-categories '("Tasks" "appointments")))
(setq interprogram-cut-function nil)
(require 'multiple-cursors)
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)
(menu-bar-mode -1)
(toggle-scroll-bar -1)
(tool-bar-mode -1)
(require 'neotree)
(global-set-key [f8] 'neotree-toggle)
(require `neotree)
(global-set-key [f8] `neotree-toggle)
;; org settings
(setq org-replace-disputed-keys t)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
;;(cond ((file-exists-p "~/.emacs_home.el") (load "~/.emacs_home.el")))
(setq org-agenda-files (list "/home/local/ASUAD/rhnatysh/Seafile/Emacs/Org Notes/Notes.org"
"/home/local/ASUAD/rhnatysh/Seafile/Emacs/Org Notes/school.org"))
(add-hook 'diary-list-entries-hook 'diary-sort-entries t)
(setq custom-file (concat user-emacs-directory "custom.el"))
(load custom-file 'noerror)
(cond ((file-exists-p "~/.emacs_home.el") (load "~/.emacs_home.el")))
;;; .emacs ends here
(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.
'(custom-enabled-themes (quote (doom-wilmersdorf)))
'(custom-safe-themes
(quote
("a6e620c9decbea9cac46ea47541b31b3e20804a4646ca6da4cce105ee03e8d0e" "a9a67b318b7417adbedaab02f05fa679973e9718d9d26075c6235b1f0db703c8" default)))
'(package-selected-packages
(quote
(restart-emacs which-key flycheck use-package telephone-line smex multiple-cursors magit eglot dashboard company centaur-tabs))))
(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.
)