1
0

Updated init.el.org

This commit is contained in:
2025-03-19 10:51:45 +01:00
parent 72f9e87fd1
commit 17548659b6

View File

@@ -1,6 +1,6 @@
#+title: init.el.org
#+date: [2025-03-18 Tue]
#+lastmod: [2025-03-18 Tue 23:59]
#+lastmod: [2025-03-19 Wed 10:39]
#+draft: false
#+tags: emacs
@@ -227,11 +227,11 @@ With Mood-line there's no need to diminish
'(org-link ((t (:bold nil))))))
#+end_src
*** all-the-icons
*** DISABLED all-the-icons
[[https://github.com/domtronn/all-the-icons.el]]
#+begin_src elisp
#+begin_src elisp :tangle no
(use-package all-the-icons
:if (display-graphic-p))
@@ -245,7 +245,7 @@ With Mood-line there's no need to diminish
[[https://www.gnu.org/software/emacs/manual/html_node/emacs/Minibuffer-Edit.html]]
The variable ~resize-mini-windows~ controls the resizing of the minibuffer. If the value is t, the minibuffer window will also shrink automatically if you remove some lines of text from the minibuffer, down to a minimum of one screen line.
The variable ~max-mini-window-height~ controls the maximum height for resizing the minibuffer window. A floating-point number specifies a fraction of the frame's height; an integer specifies the maximum number of lines; nil means do not resize the minibuffer window automatically. The default value is 0.25.
The variable ~max-mini-window-height~ controls the maximum height for resizing the minibuffer window. A floating-point number specifies a fraction of the frames height; an integer specifies the maximum number of lines; nil means do not resize the minibuffer window automatically. The default value is 0.25.
#+begin_src elisp
(setq resize-mini-windows t)
@@ -388,7 +388,7 @@ A Collection of Ridiculously Useful eXtensions for Emacs. crux bundles many usef
** Kill buffer
#+begin_src elisp
(global-set-key (kbd "C-x k") 'kill-this-buffer)
(global-set-key (kbd "C-x k") 'kill-current-buffer)
#+end_src
** Unset C-z
@@ -509,40 +509,12 @@ which-key is a minor mode for Emacs that displays the key bindings following you
(which-key-setup-side-window-bottom))
#+end_src
** Helm
[[https://emacs-helm.github.io/helm/]]
Helm is an Emacs framework for incremental completions and narrowing selections. It helps to rapidly complete file names, buffer names, or any other Emacs interactions requiring selecting an item from a list of possible choices.
#+begin_src elisp
(use-package helm
:ensure t
:config
;;(require 'helm-config)
:init
(helm-mode 1)
(setq helm-split-window-inside-p t)
:diminish helm-mode
:bind (("M-x" . helm-M-x) ; Evaluate functions
("C-x C-f" . helm-find-files) ; Open or create files
("C-x b" . helm-mini) ; Select buffers
("C-x C-b" . helm-buffers-list)
("C-x C-r" . helm-recentf) ; Select recently saved files
("C-c i" . helm-imenu) ; Select document heading
("M-y" . helm-show-kill-ring) ; Show the kill ring
("C-x c g" . helm-do-grep-ag)
:map helm-map
("C-z" . helm-select-action)
("<tab>" . helm-execute-persistent-action)))
#+end_src
** Org Mode
*** Org Mode on my laptop
[[https://orgmode.org/org.html]]
*** Org Mode on my laptop
#+begin_src elisp
(use-package org
:if laptop-p
@@ -596,7 +568,7 @@ Helm is an Emacs framework for incremental completions and narrowing selections.
("C-c c" . org-capture))
:config
(setq org-directory "~/org"
org-default-notes-file "~/org/notes.org"
org-default-notes-file "~/org/inbox.org"
org-agenda-files '("~/org"))
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(setq org-startup-indented nil
@@ -619,18 +591,6 @@ Helm is an Emacs framework for incremental completions and narrowing selections.
("n" "Note" entry (file org-default-notes-file) "* %?\n:PROPERTIES:\n:CREATED: %U\n:CONTEXT: %a\n:END:" :empty-lines 1))))
#+end_src
*** Helm-org
[[https://github.com/emacs-helm/helm-org]]
#+begin_src elisp
(use-package helm-org
:after helm
:config
(add-to-list 'helm-completing-read-handlers-alist '(org-capture . helm-org-completing-read-tags))
(add-to-list 'helm-completing-read-handlers-alist '(org-set-tags . helm-org-completing-read-tags)))
#+end_src
*** org-super-agenda
[[https://github.com/alphapapa/org-super-agenda]]
@@ -755,3 +715,43 @@ Hide emphasis markers by default.
#+begin_src elisp
(setq org-hide-emphasis-markers t)
#+end_src
** Helm
[[https://emacs-helm.github.io/helm/]]
Imagine a life without Helm...
#+begin_src elisp
(use-package helm
:ensure t
:config
;;(require 'helm-config)
:init
(helm-mode 1)
(setq helm-split-window-inside-p t)
:diminish helm-mode
:bind (("M-x" . helm-M-x) ; Evaluate functions
("C-x C-f" . helm-find-files) ; Open or create files
("C-x b" . helm-mini) ; Select buffers
("C-x C-b" . helm-buffers-list)
("C-x C-r" . helm-recentf) ; Select recently saved files
("C-c i" . helm-imenu) ; Select document heading
("M-y" . helm-show-kill-ring) ; Show the kill ring
("C-x c g" . helm-do-grep-ag)
:map helm-map
("C-z" . helm-select-action)
("<tab>" . helm-execute-persistent-action)))
#+end_src
*** Helm-org
[[https://github.com/emacs-helm/helm-org]]
#+begin_src elisp
(use-package helm-org
:after helm
:config
(add-to-list 'helm-completing-read-handlers-alist '(org-capture . helm-org-completing-read-tags))
(add-to-list 'helm-completing-read-handlers-alist '(org-set-tags . helm-org-completing-read-tags)))
#+end_src