From 8ba40ae548b6a491b805107f995bf10318bcd98f Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Sun, 2 Oct 2022 13:21:44 +0200 Subject: Add startup function to emacs config --- Emacs.org | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Emacs.org b/Emacs.org index d9d7ed7..77bfefa 100644 --- a/Emacs.org +++ b/Emacs.org @@ -4,6 +4,7 @@ * Table of contents :toc: - [[#startup-performance][Startup Performance]] +- [[#on-startup][On startup]] - [[#user-information-setup][User information setup]] - [[#stay-clean][Stay clean]] - [[#package-setup][Package setup]] @@ -58,10 +59,21 @@ (time-subtract after-init-time before-init-time))) gcs-done)) - (add-hook 'emacs-startup-hook #'jd/display-startup-time) +#+end_src + +* On startup +=jd/startup= function will be invoke after emacs startup + +#+begin_src emacs-lisp + (defun jd/startup () + (electric-pair-mode 1) + (global-company-mode 1) + (jd/display-startup-time)) + (add-hook 'emacs-startup-hook #'jd/startup) #+end_src + * User information setup #+begin_src emacs-lisp @@ -616,6 +628,7 @@ * Development ** Languages + *** Lsp #+begin_src emacs-lisp -- cgit v1.2.3