Skip to content

Commit

Permalink
Merge branch 'release/1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Abuelodelanada committed Sep 23, 2020
2 parents c15aeee + 9d8cec2 commit 7efc9cf
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 36 deletions.
8 changes: 8 additions & 0 deletions hooks.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
;;; Code:

;; Hooks
;; Use a hook so the message doesn't get clobbered by other messages.
(add-hook 'emacs-startup-hook
(lambda ()
(message "Emacs with 'The Pepe emacs config' is ready in %s with %d garbage collections."
(format "%.3f seconds"
(float-time
(time-subtract after-init-time before-init-time)))
gcs-done)))
(add-hook 'window-setup-hook 'on-after-init)
;(add-hook 'php-mode-hook 'php-enable-psr2-coding-style)
(add-hook 'flycheck-mode-hook 'flycheck-color-mode-line-mode)
Expand Down
11 changes: 4 additions & 7 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@
(load "~/.emacs.d/messages")
(setq load-prefer-newer t)
(package-initialize)
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
(load "~/.emacs.d/init-packages")

(eval-when-compile
(require 'use-package))
(load "~/.emacs.d/use-package")
(require 'auto-compile)
(auto-compile-on-load-mode)
(auto-compile-on-save-mode)
(load "~/.emacs.d/require")
(load "~/.emacs.d/variables")
(load "~/.emacs.d/customvariables")
(load "~/.emacs.d/functions")
Expand All @@ -35,7 +32,6 @@
(global-git-gutter-mode t)
(global-highlight-parentheses-mode t)
(global-linum-mode t) ;; Show line-number
(hlinum-activate)
(global-whitespace-mode t)
(ido-mode t)
(menu-bar-mode -1) ;; Hide menubar
Expand All @@ -46,15 +42,16 @@
(tool-bar-mode -1) ;; Hide toolbar
(yas-global-mode 1)
(projectile-mode +1)
(which-key-mode)

(put 'downcase-region 'disabled nil)
(set-default 'case-fold-search nil) ; Case sensitive TAGS search
(autoload 'geben "geben" "DBGp protocol frontend, a script debugger" t) ; Geben

(diminish 'abbrev-mode "Abv")
(diminish 'git-gutter-mode)
(diminish 'global-whitespace-mode t)
(diminish 'yas-minor-mode t)
(diminish 'global-whitespace-mode "")
(diminish 'yas-minor-mode "")
(load-theme 'monokai t)
(load "~/.emacs.d/faces")
(load "~/.emacs.d/customfaces")
Expand Down
4 changes: 2 additions & 2 deletions tabbar.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

;; Use Powerline to make tabs look nicer
;; (this needs to run *after* the colors are set)
(require 'powerline)
(defvar my/tabbar-height 20)
;(require 'powerline)
(defvar my/tabbar-height 25)
(defvar my/tabbar-left (powerline-slant-right 'tabbar-default nil my/tabbar-height))
(defvar my/tabbar-right (powerline-slant-right nil 'tabbar-default my/tabbar-height))
(defun my/tabbar-tab-label-function (tab)
Expand Down
69 changes: 42 additions & 27 deletions use-package.el
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@
(use-package adoc-mode
:mode "\\.adoc")
(use-package ag
:defer t)
:defer 2)
(use-package all-the-icons
:defer t)
:defer 1)
(use-package auto-compile
:defer t)
:defer t
:custom
(auto-compile-on-load-mode)
(auto-compile-on-save-mode))
;(use-package benchmark-init
; :ensure t
; :config
Expand Down Expand Up @@ -59,13 +62,14 @@
(use-package dockerfile-mode
:mode "Dockerfile\\'")
(use-package dumb-jump
:defer t
:defer 2
:custom
(dumb-jump-default-project "~")
(dumb-jump-force-searcher nil)
(dumb-jump-prefer-searcher 'ag)
(dumb-jump-quiet nil))
(use-package ecb
; :defer 2
:bind (("<f7>" . ecb-minor-mode))
:custom
(ecb-layout-name "left6")
Expand Down Expand Up @@ -105,21 +109,14 @@
:after (flycheck))
(use-package gcmh)
(use-package geben
:defer t)
:defer 2)
(use-package git-gutter-fringe)
(use-package highlight
:defer t
:defer 2
:custom-face
(highlight ((t (:background "black" :foreground "white")))))
(use-package highlight-parentheses
:defer t
:diminish)
(use-package highlight-indent-guides
:defer t
:init
(add-hook 'prog-mode-hook 'highlight-indent-guides-mode)
:custom
(highlight-indent-guides-method 'bitmap)
:defer 2
:diminish)
(use-package hlinum
:custom-face
Expand All @@ -137,10 +134,12 @@
(use-package json-mode
:mode "\\.json\\'")
(use-package linum
:defer 0.3
:init
(add-hook 'linum-mode-hook 'my-linum-mode-hook))
(add-hook 'linum-mode-hook 'my-linum-mode-hook)
(hlinum-activate))
(use-package magit
:bind (("C-x g" . magit-status))
:bind (("C-x g" . magit-status))
:custom-face
(magit-branch-local ((t (:foreground "orange"))))
(magit-branch-remote ((t (:foreground "#D90F5A"))))
Expand Down Expand Up @@ -171,9 +170,9 @@
(use-package markdown-toc
:after (markdown-mode))
(use-package markup-faces
:defer t)
:defer 2)
(use-package monokai-theme
:defer t)
:defer 2)
(use-package neotree
:bind (("<f8>" . neotree-toggle))
:custom
Expand All @@ -186,7 +185,7 @@
(neo-dir-link-face ((t (:foreground "#FF6E27"))))
(neo-root-dir-face ((t (:background "#000000" :foreground "gold")))))
(use-package pass
:defer t
:defer 2
:custom-face
(pass-mode-directory-face ((t (:foreground "#FF6E27" :weight bold))))
(pass-mode-entry-face ((t))))
Expand All @@ -205,8 +204,14 @@
(phpcbf-standard "PSR12")
:after (php-mode))
(use-package pkg-info
:defer t)
(use-package popup)
:defer 2)
(use-package popup
:defer 2
:custom-face
(popup-face ((t (:background "gray10" :foreground "#F8F8F2"))))
(popup-menu-face ((t (:background "gray10" :foreground "#F8F8F2"))))
(popup-menu-mouse-face ((t (:background "orange" :foreground "#F8F8F2"))))
(popup-menu-selection-face ((t (:background "orange red" :foreground "#000000")))))
(use-package powerline
:custom
(powerline-default-separator "arrow-fade")
Expand All @@ -221,16 +226,18 @@
(powerline-active2 ((t (:background "gray9" :foreground "#FF6E27")))))

(use-package projectile
:defer 0.1
:defer 0.4
:diminish "Proj"
:custom
(projectile-use-git-grep t)
:bind-keymap
("M-p" . projectile-command-map)
("C-c p" . projectile-command-map))
(use-package smarty-mode
:mode "\\.tpl$")
(use-package sqlformat
:bind (("C-c <tab>" . sqlformat))
:defer t)
:bind (("C-c <tab>" . sqlformat))
:defer 2)
(use-package tabbar
:bind (("M-<left>" . tabbar-backward)
("M-<right>" . tabbar-forward))
Expand All @@ -241,12 +248,20 @@
:custom-face
(tabbar-separator ((t (:inherit tabbar-default :width normal)))))
(use-package web-mode
:defer t)
:mode "\\.html?\\'"
:mode "\\.phtml\\'"
:mode "\\.phtml\\'")

(use-package which-key
:defer 2
:custom-face
(which-key-key-face ((t (:foreground "#FF6E27" :weight bold))))
(which-key-group-description-face ((t (:foreground "#FE8B05" :weight bold)))))
(use-package yaml-mode
:mode "\\.yml$"
:mode "\\.yaml$")
(use-package yasnippet
:defer t)
:defer 2)
(use-package yasnippet-snippets
:defer t)
:defer 2)
;;;
2 changes: 2 additions & 0 deletions variables.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
(setq-default yas-prompt-functions '(yas-dropdown-prompt yas-ido-prompt yas-completing-prompt))
(setq-default load-prefer-newer t)
(setq-default pepe-debug-p t)
(setq-default whitespace-style '(face trailing tabs newline empty indentation space-after-tab space-before-tab space-mark tab-mark newline-mark))
(setq-default whitespace-global-modes '(adoc-mode dockerfile-mode js2-mode json-mode markdown-mode php-mode python-mode smarty-mode web-mode yaml-mode))
;(setq projectile-project-search-path '("~/projects/" "~/work/")) ;; Set your project's direcotries copying this line in customvariables.el

;; Taker from doom-emacs
Expand Down

0 comments on commit 7efc9cf

Please sign in to comment.