Fixing lexical-binding issue

This commit is contained in:
Dita Aji Pratama 2025-10-21 08:38:46 +07:00
parent be5aed29c3
commit b73534c47b
9 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -1,3 +1,4 @@
;; -*- lexical-binding: t; -*-
;; Clipboard integration (Not work in terminal)
(setq select-enable-clipboard t)
(setq select-enable-primary t)

View File

@ -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

View File

@ -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 )

View File

@ -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)

View File

@ -1,3 +1,4 @@
;; -*- lexical-binding: t; -*-
(require 'package)
(package-initialize)

View File

@ -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

View File

@ -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")))

View File

@ -1,3 +1,4 @@
;; -*- lexical-binding: t; -*-
;;; dracula-theme.el --- Dracula Theme
;; Copyright 2015-present, All rights reserved