]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
minor tweaks for multi-os
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 19 Jan 2024 09:16:54 +0000 (10:16 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 19 Jan 2024 10:03:20 +0000 (11:03 +0100)
* enable some features only on mac
* change perl indentation

Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba-programming.org
bba.org

index c7da023d7e2f258c8d8e55be4151045d479b7c50..94fd746d512188a964dbac5d189e0407d1874d5f 100644 (file)
@@ -216,8 +216,8 @@ in the end use magit-stash.
     '(progn
        (add-hook 'cperl-mode-hook (lambda() (cperl-set-style "K&R")
      ;;  (setq cperl-close-paren-offset -4)
-       (setq cperl-continued-statement-offset 4)
-       (setq cperl-indent-level 4)
+       (setq cperl-continued-statement-offset 2)
+       (setq cperl-indent-level 2)
        (setq cperl-indent-parens-as-block t)
        (setq cperl-tab-always-indent t)
        (perlcritic-mode)
diff --git a/bba.org b/bba.org
index c13d5f13faaeb98e7d6903a0599cd1e6c116ac2e..4d37a32a95f284dc63b98ab22fba0f97e0c20988 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -232,15 +232,12 @@ If trash is missing you might want to run
 
 #+BEGIN_SRC emacs-lisp :tangle no
   (if (string-equal system-type "darwin")
-  (if (file-exists-p "/opt/local/bin/trash")
-      (progn
-       (defun system-move-file-to-trash (file)
-      "Use osx port trash to move files to trash"
-      (call-process "trash" nil nil nil file)
-       )
-      )
-  )
-  )
+      (if (file-exists-p "/opt/local/bin/trash")
+          (progn
+            (defun system-move-file-to-trash (file)
+              "Use osx port trash to move files to trash"
+              (call-process "trash" nil nil nil file)
+              ))))
 #+END_SRC
 
 With trash you can recover files to it's original location.
@@ -290,6 +287,7 @@ Keep track of your important stuff!
         ;; (package-initialize)
         (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
         (add-to-list 'package-archives '("elpa" . "https://elpa.gnu.org/packages/"))
+        (setq package-install-upgrade-built-in t)
         ))
 #+END_SRC
 
@@ -2452,8 +2450,9 @@ switch default browser between eww and default.
 
 
 #+BEGIN_SRC emacs-lisp
-  (setq type-break-keystroke-threshold '(3600 . 18000))
-  (type-break-mode t)
+  (if (string-equal system-type "darwin")
+      (setq type-break-keystroke-threshold '(3600 . 18000))
+    (type-break-mode t))
 #+END_SRC
 
 * aliases
@@ -2489,7 +2488,7 @@ character before any spaces."
 * key bindings
 
 #+BEGIN_SRC emacs-lisp
-  (if (>= emacs-major-version 28)
+  (if (string-equal system-type "darwin")
       (progn (setq mac-command-modifier 'super)
              (setq mac-option-modifier 'meta)))
 
@@ -3296,10 +3295,11 @@ whole team. No matter what editor gets used.
 https://github.com/IBM/plex/releases
 
 #+begin_src emacs-lisp :tangle no
-  (seq-filter (lambda (font)
-              (when-let ((info (font-info font)))
-                (string-match-p "spacing=100" (aref info 1))))
-            (font-family-list))
+  (if (string-equal system-type "darwin")
+      (seq-filter (lambda (font)
+                    (when-let ((info (font-info font)))
+                      (string-match-p "spacing=100" (aref info 1))))
+                  (font-family-list)))
 
 #+end_src