From b73534c47b2db6d7efe7fb8bfee9c451d3a607c1 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Tue, 21 Oct 2025 08:38:46 +0700 Subject: [PATCH] Fixing lexical-binding issue --- config/backup.el | 1 + config/clipboard.el | 1 + config/editor.el | 1 + config/keybinding.el | 1 + config/multiwindows.el | 1 + config/packages.el | 1 + config/ui.el | 1 + init.el | 1 + themes/dracula-theme.el | 1 + 9 files changed, 9 insertions(+) diff --git a/config/backup.el b/config/backup.el index 4d6400c..f690aca 100644 --- a/config/backup.el +++ b/config/backup.el @@ -1,3 +1,4 @@ +;; -*- lexical-binding: t; -*- ; make backup to a designated dir, mirroring the full path (defun xah-backup-nested-dir-file-path (Fpath) "Return a new file path and create dirs. diff --git a/config/clipboard.el b/config/clipboard.el index 20b0c23..d1c7b21 100644 --- a/config/clipboard.el +++ b/config/clipboard.el @@ -1,3 +1,4 @@ +;; -*- lexical-binding: t; -*- ;; Clipboard integration (Not work in terminal) (setq select-enable-clipboard t) (setq select-enable-primary t) diff --git a/config/editor.el b/config/editor.el index bfe4a5a..38aa841 100644 --- a/config/editor.el +++ b/config/editor.el @@ -1,3 +1,4 @@ +;; -*- lexical-binding: t; -*- ;; For example, set the default tab width to 4 spaces (setq-default tab-width 4) ;; For Python mode, set the indentation style diff --git a/config/keybinding.el b/config/keybinding.el index 6ed694b..a54ddb7 100644 --- a/config/keybinding.el +++ b/config/keybinding.el @@ -1,3 +1,4 @@ +;; -*- lexical-binding: t; -*- (global-set-key (kbd "C-c \\" ) 'treemacs ) ;; Tree Toggle (global-set-key (kbd "C-c C-\\" ) 'treemacs-select-window ) ;; Tree Focus (global-set-key (kbd "C-c M-`" ) 'treemacs-edit-workspaces ) diff --git a/config/multiwindows.el b/config/multiwindows.el index da6ac86..40ad3f4 100644 --- a/config/multiwindows.el +++ b/config/multiwindows.el @@ -1,2 +1,3 @@ +;; -*- lexical-binding: t; -*- (treemacs-define-RET-action 'file-node-closed #'treemacs-visit-node-ace) (treemacs-define-RET-action 'file-node-open #'treemacs-visit-node-ace) diff --git a/config/packages.el b/config/packages.el index 1e6222b..4446649 100644 --- a/config/packages.el +++ b/config/packages.el @@ -1,3 +1,4 @@ +;; -*- lexical-binding: t; -*- (require 'package) (package-initialize) diff --git a/config/ui.el b/config/ui.el index b9d178f..3976746 100644 --- a/config/ui.el +++ b/config/ui.el @@ -1,3 +1,4 @@ +;; -*- lexical-binding: t; -*- (setq tab-bar-show 1) ;; Show the tab bar only when more than one tab exists. (global-display-line-numbers-mode t) ;; Display line numbers diff --git a/init.el b/init.el index 2df5059..42caf36 100644 --- a/init.el +++ b/init.el @@ -1,3 +1,4 @@ +;; -*- lexical-binding: t; -*- (add-to-list 'load-path (expand-file-name "config" user-emacs-directory)) (load-file (expand-file-name "packages.el" (concat user-emacs-directory "config"))) (load-file (expand-file-name "ui.el" (concat user-emacs-directory "config"))) diff --git a/themes/dracula-theme.el b/themes/dracula-theme.el index 096626b..f3cf297 100644 --- a/themes/dracula-theme.el +++ b/themes/dracula-theme.el @@ -1,3 +1,4 @@ +;; -*- lexical-binding: t; -*- ;;; dracula-theme.el --- Dracula Theme ;; Copyright 2015-present, All rights reserved