From e7347b2cf48a6cce476852727ee7913d78f75f9d Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 3 Aug 2016 21:37:11 +0200 Subject: init: Fix noweb-ref name --- init.d/main.org | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/init.d/main.org b/init.d/main.org index db999ab..ce7659f 100644 --- a/init.d/main.org +++ b/init.d/main.org @@ -1503,7 +1503,7 @@ create more hydras. ("" . alex/hydra-zoom/body) ("C-t" . alex/hydra-toggle/body)) :config - <>) + <>) #+end_src *** move splitter @@ -1511,7 +1511,7 @@ create more hydras. With this hydra I can move the splitter between frames using the cursor keys. -#+begin_src emacs-lisp :noweb-ref helm :tangle no +#+begin_src emacs-lisp :noweb-ref hydra :tangle no (require 'hydra-examples) (defhydra alex/hydra-splitter () "Move window spitter" @@ -1526,7 +1526,7 @@ cursor keys. With this hydra I can change font site on demand, by repeatedly pressing + or - until the desired font-size is reached. -#+begin_src emacs-lisp :noweb-ref helm :tangle no +#+begin_src emacs-lisp :noweb-ref hydra :tangle no (defhydra alex/hydra-zoom () "Change font size" ("+" text-scale-increase "zoom in") @@ -1542,7 +1542,7 @@ Because the keys are already documented in the docstring, hydra should not show all the keys again in the mode line and we globally set the hint to nil. -#+begin_src emacs-lisp :noweb-ref helm :tangle no +#+begin_src emacs-lisp :noweb-ref hydra :tangle no (defhydra alex/hydra-toggle (:hint nil) " -- cgit v1.2.3 From 3ad980893d3b5bda52eeb97d54403f5a83ef465a Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 3 Aug 2016 21:37:25 +0200 Subject: init: Unbind C-z if not running on a terminal --- init.d/main.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init.d/main.org b/init.d/main.org index ce7659f..1b3ff88 100644 --- a/init.d/main.org +++ b/init.d/main.org @@ -421,6 +421,17 @@ that points to a file under version control. (setq vc-follow-symlinks t) #+end_src +*** Unbind C-z, if not running in terminal + +C-z is a relict from terminal programms to suspend the currently +running programm. It is not needed under X11 and the gui will freeze, +if you press it by accident. + +#+begin_src emacs-lisp +(when window-system + (global-unset-key (kbd "C-z"))) +#+end_src + ** Visual *** Window configuration -- cgit v1.2.3 From f5c2c0af66080c22b1da9eea4e2cd963ff932c3e Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 3 Aug 2016 21:39:19 +0200 Subject: init: Speed up the untangling We only use the noweb-refs to split big parts of package configurations in more smaller parts, so we do not need very fancy features and the quick&dirty mode is sufficient. --- init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index b841c11..902642d 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ (let ((file-name-handler-alist nil)) (package-initialize nil) - (setq package-enable-at-startup nil) - + (setq package-enable-at-startup nil + org-babel-use-quick-and-dirty-noweb-expansion t) (org-babel-load-file "~/.emacs.d/init.d/main.org")) -- cgit v1.2.3