Browse Source

Init-config, use-package, helm, doom, icons, which-key, modeline, projectile and dashboard

ubuntu
parent
commit
26dd1092a0
1 changed files with 93 additions and 1 deletions
  1. +93
    -1
      .emacs

+ 93
- 1
.emacs View File

@ -1,5 +1,97 @@
;; My basic configuration Gerardo Marx 15/Jul/2020
;;--------
;; Melpa repository:
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
;; use-package
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
;; which-key:
(use-package which-key
:ensure t
:config (which-key-mode))
;; doom-themes
(use-package doom-themes
:ensure t
:config
(load-theme 'doom-one)
;; Enable flashing mode-line on errors
(doom-themes-visual-bell-config)
;; Enable custom neotree theme (all-the-icons must be installed!)
(doom-themes-neotree-config)
;; or for treemacs users
(setq doom-themes-treemacs-theme "doom-colors") ; use the colorful treemacs theme
(doom-themes-treemacs-config)
;; Corrects (and improves) org-mode's native fontification.
(doom-themes-org-config))
;; modeline
(use-package doom-modeline
:ensure t
:hook (after-init . doom-modeline-mode))
;; icons:
(use-package all-the-icons
:ensure t) ;; --> you need this M-x all-the-icons-install-fonts
;; startup config
(setq inhibit-startup-message t) ;;inhibit startup
(tool-bar-mode -1)
(menu-bar-mode -1)
(global-hl-line-mode +1) ;; highlith current line
(delete-selection-mode +1) ;; deletes selected text and replace it
(scroll-bar-mode -1)
(setq ns-right-alternate-modifier nil) ;; right option macos key enable
(setq backup-directory-alis '(("." . "~/.saves"))) ;; a backup dir to store no saved files
(add-hook 'prog-mode-hook 'display-line-numbers-mode) ;; display line number when programming
(show-paren-mode +1) ;; show matching parentheses
;; helm package:
(use-package helm
:ensure t
:config (helm-mode t))
;; projectile:
(use-package projectile
:ensure t
:config
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
(projectile-mode t))
;; helm-projectile:
(use-package helm-projectile
:ensure t
:config (helm-projectile-on))
;; dash-board:
(use-package dashboard
:ensure t
:init
(progn
(setq dashboard-items '((recents . 5)
(bookmarks . 5)
(projects . 5)
(agenda . 5)))
(setq dashboard-banner-logo-title "Welcole Marx")
(setq dashboard-set-file-icons t)
(setq dashboard-set-init-info t)
(add-to-list 'dashboard-items '(agenda) t)
(setq dashboard-startup-banner 'logo)
)
:config
(dashboard-setup-startup-hook))
;; Set default font:
(add-to-list 'default-frame-alist
'(font . "Source Code Pro-20"))
'(font . "Source Code Pro-18"))
(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-safe-themes
(quote
("2f1518e906a8b60fac943d02ad415f1d8b3933a5a7f75e307e6e9a26ef5bf570" "fe94e2e42ccaa9714dd0f83a5aa1efeef819e22c5774115a9984293af609fce7" default)))
'(package-selected-packages
(quote
(dashboard helm-projectile helm doom-modeline doom-themes which-key use-package projectile))))
(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.
)

Loading…
Cancel
Save