diff options
author | mattkae <mattkae@protonmail.com> | 2022-06-07 08:23:47 -0400 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-06-07 08:23:47 -0400 |
commit | bd18a38c2898548a3664a9ddab9f79c84f2caf4a (patch) | |
tree | 95b9933376770381bd8859782ae763be81c2d72b /lisp/general.el~ | |
parent | b07628dddf418d4f47b858e6c35fd3520fbaeed2 (diff) | |
parent | ef160dea332af4b4fe5e2717b962936c67e5fe9e (diff) |
Merge conflict
Diffstat (limited to 'lisp/general.el~')
-rw-r--r-- | lisp/general.el~ | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/lisp/general.el~ b/lisp/general.el~ new file mode 100644 index 0000000..b06836a --- /dev/null +++ b/lisp/general.el~ @@ -0,0 +1,59 @@ +(defun setup-general() + ;; menu bars + (menu-bar-mode -1) + (toggle-scroll-bar -1) + (tool-bar-mode -1) + (setq mac-shift-modifier 'meta) + + ;; Default Values + ;(setq-default indent-tabs-mode t) ; use spaces only if nil + (setq-default tab-width 4) ; Assuming you want your tabs to be four spaces wide + (set-face-attribute 'default nil :font "Droid Sans Mono-12") + (set-fontset-font t nil "Courier New" nil 'append) + (set-fontset-font t '(?😊 . ?😎) "Segoe UI Emoji") + + ;;(set-face-attribute 'default nil :height 110 :family "Consolas") + (set-language-environment "UTF-8") + (set-default-coding-systems 'utf-8) + + ;; Cursor + (setq-default cursor-type 'bar) + (blink-cursor-mode 1) + + ;; Margin + (global-linum-mode 1) + ;; (require 'minimap) + ;; (minimap-mode 1) + (require 'perfect-margin) + (perfect-margin-mode 1) + + ;; Highlight line + (require 'hl-line) + (global-hl-line-mode 1) + (set-face-background hl-line-face "#EFEFEF") + + ;; Initialization screen + (setq inhibit-splash-screen t) + (setq initial-scratch-message "") + (setq initial-major-mode 'text-mode) + (org-agenda-list) + (delete-other-windows) + + ;; Projectile for projects + (require 'projectile) + (projectile-mode +1) + (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) + + ;; Tree + (require 'neotree) + (global-set-key [f8] 'neotree-toggle) + (setq neo-smart-open t) + (setq projectile-switch-project-action 'neotree-projectile-action) + (setq neo-theme (if (display-graphic-p) 'icons 'arrow)) + + ;; Smooth scroll + (require 'smooth-scrolling) + (smooth-scrolling-mode 1) +) + +(provide 'general) |