summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-11 19:49:43 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-11 19:49:43 +0200
commitf8d1d9481575573baa3aec9dfd68023292d3ca27 (patch)
tree61f3050fa8840b108ce415a010209ea28caf468c
parentemacs conf update; (diff)
downloaddotfiles-bsd-f8d1d9481575573baa3aec9dfd68023292d3ca27.tar.gz
dotfiles-bsd-f8d1d9481575573baa3aec9dfd68023292d3ca27.tar.bz2
dotfiles-bsd-f8d1d9481575573baa3aec9dfd68023292d3ca27.tar.xz
dotfiles-bsd-f8d1d9481575573baa3aec9dfd68023292d3ca27.tar.zst
dotfiles-bsd-f8d1d9481575573baa3aec9dfd68023292d3ca27.zip
configs update
-rw-r--r--.config/emacs/org/config.org23
-rwxr-xr-x.local/bin/setscreens.sh12
2 files changed, 24 insertions, 11 deletions
diff --git a/.config/emacs/org/config.org b/.config/emacs/org/config.org
index e1a3253..7c7f34b 100644
--- a/.config/emacs/org/config.org
+++ b/.config/emacs/org/config.org
@@ -189,6 +189,11 @@
(setq evil-want-C-u-scroll t)
#+END_SRC
+** Files types attribution
+ #+BEGIN_SRC emacs-lisp
+ (add-to-list 'auto-mode-alist '("xinitrc$" . shell-script-mode))
+ #+END_SRC
+
** Core packages
*** Autopair
#+BEGIN_SRC emacs-lisp
@@ -769,6 +774,24 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(setq eyebrowse-new-workspace t)
#+END_SRC
+*** web-mode
+ #+BEGIN_SRC emacs-lisp
+ (defun my-setup-php ()
+ ;; enable web mode
+ (web-mode)
+
+ ;; make these variables local
+ (make-local-variable 'web-mode-code-indent-offset)
+ (make-local-variable 'web-mode-markup-indent-offset)
+ (make-local-variable 'web-mode-css-indent-offset)
+
+ ;; set indentation, can set different indentation level for different code type
+ (setq web-mode-code-indent-offset 4)
+ (setq web-mode-css-indent-offset 4)
+ (setq web-mode-markup-indent-offset 4))
+ (add-to-list 'auto-mode-alist '("\\.php$" . my-setup-php))
+ #+END_SRC
+
*** undo-tree
#+BEGIN_SRC emacs-lisp
(require 'undo-tree)
diff --git a/.local/bin/setscreens.sh b/.local/bin/setscreens.sh
index f718261..69a23de 100755
--- a/.local/bin/setscreens.sh
+++ b/.local/bin/setscreens.sh
@@ -1,4 +1,4 @@
-#!/usr/local/bin/dash
+#!/bin/sh
if xrandr | grep 'HDMI-1 connected'; then
if xrandr | grep 'VGA-1 connected'; then
@@ -10,16 +10,6 @@ if xrandr | grep 'HDMI-1 connected'; then
xrandr --output HDMI-3 --off
xrandr --output DP-2 --off
xrandr --output DP-3 --off
- else
- xrandr --output VGA-1 --off
- xrandr --output HDMI-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal
- xrandr --output DP-1 --off
- xrandr --output LVDS-1 --mode 1366x768 --pos 1920x312 --rotate normal
- xrandr --output HDMI-2 --off
- xrandr --output HDMI-3 --off
- xrandr --output DP-2 --off
- xrandr --output DP-3 --off
- fi
else
xrandr --output LVDS-1 --primary --mode 1366x768 --pos 0x0 --rotate normal
xrandr --output VGA-1 --off