Bunch of stuff, who cares
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# key: beg
|
||||
# name: beg
|
||||
# --
|
||||
std::begin($0)
|
||||
@@ -1,6 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: v.begin(), v.end()
|
||||
# key: bend
|
||||
# uuid: beginend
|
||||
# --
|
||||
${1:a}.begin(), $1.end()
|
||||
std::begin(${1:a}), std::end($1)
|
||||
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: end
|
||||
# key: end
|
||||
# --
|
||||
std::end($0)
|
||||
@@ -10,8 +10,9 @@
|
||||
00204 Wed Dec 28 14:50:42 2022 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00187 Thu Jan 12 01:30:09 2023 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00172 Mon Jan 9 12:59:13 2023 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00166 Mon May 6 02:40:23 2024 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00166 Fri Aug 16 11:05:23 2024 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00166 Mon May 6 02:40:23 2024 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00154 Sat Jul 26 18:43:42 2025 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00120 Thu Aug 29 18:45:32 2024 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00114 Fri Jul 21 11:58:31 2023 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00096 Sat Dec 3 16:21:40 2022 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
@@ -27,12 +28,12 @@
|
||||
00048 Sun May 5 19:34:16 2024 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00046 Wed Oct 12 11:27:19 2022 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00042 Tue Aug 1 19:58:49 2023 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00038 Fri Oct 14 13:05:44 2022 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00038 Tue Oct 11 16:47:44 2022 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00038 Fri Oct 14 13:05:44 2022 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00037 Thu Aug 17 18:11:59 2023 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00027 Thu Jan 12 01:14:32 2023 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00024 Thu Jan 12 01:14:54 2023 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00012 Tue Jan 17 13:58:01 2023 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00006 Mon Jan 9 11:04:43 2023 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00006 Thu Jun 22 23:16:42 2023 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00006 Mon Jan 9 11:04:43 2023 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
00000 Fri Dec 2 13:58:02 2022 Aryadev Chavali <aryadev@aryadevchavali.com>
|
||||
|
||||
@@ -270,7 +270,8 @@ forcefully adjust the font size.
|
||||
(_ 120))
|
||||
(pcase (display-pixel-width) ; get a multiplier based on resolution
|
||||
((pred (>= 1920)) 0.9)
|
||||
((pred (>= 2560)) 1.24)))
|
||||
((pred (>= 2560)) 1.24)
|
||||
(_ 1.05)))
|
||||
floor
|
||||
(progn
|
||||
(set-face-attribute 'default nil :height it)
|
||||
@@ -1019,8 +1020,9 @@ fundamental mode and call it a day.
|
||||
(with-current-buffer "*scratch*"
|
||||
(goto-char (point-max))
|
||||
(thread-last
|
||||
(emacs-init-time)
|
||||
(format "Emacs v%s - %s\n" emacs-version)
|
||||
(straight-recipes-list)
|
||||
length
|
||||
(format "Emacs v%s - %s - %s packages\n" emacs-version (emacs-init-time))
|
||||
(insert))))))
|
||||
#+end_src
|
||||
** Cursor and the highlighted line
|
||||
@@ -1515,6 +1517,7 @@ system.
|
||||
(setq-default
|
||||
smtpmail-smtp-server "mail.aryadevchavali.com"
|
||||
smtpmail-smtp-user "aryadev"
|
||||
smtpmail-servers-requiring-authorization "mail.aryadevchavali.com"
|
||||
smtpmail-smtp-service 587
|
||||
smtpmail-stream-type 'starttls
|
||||
send-mail-function #'smtpmail-send-it
|
||||
@@ -2353,13 +2356,11 @@ playing.
|
||||
:general
|
||||
(app-leader
|
||||
"e" #'empv-hydra/body)
|
||||
|
||||
:init
|
||||
(setq empv-audio-dir (list (expand-file-name "~/Media/audio")
|
||||
;; "/sshx:oldboy:/media/hdd/content/Audio"
|
||||
)
|
||||
(setq empv-audio-dir (list (expand-file-name "~/Media/audio"))
|
||||
empv-video-dir (list (expand-file-name "~/Media/videos")
|
||||
;; "/sshx:oldboy:/media/hdd/content/Videos"
|
||||
)
|
||||
(expand-file-name "~/Media/anime"))
|
||||
empv-playlist-dir (expand-file-name "~/Media/playlists")
|
||||
empv-audio-file-extensions (list "mp3" "ogg" "wav" "m4a" "flac" "aac" "opus")
|
||||
empv-video-file-extensions (list "mkv" "mp4" "avi" "mov" "webm")
|
||||
@@ -3113,7 +3114,7 @@ a very tidy way to manage your time.
|
||||
org-agenda-skip-scheduled-if-done t
|
||||
org-agenda-skip-deadline-if-done t
|
||||
org-agenda-start-with-entry-text-mode nil
|
||||
org-agenda-span 'day)
|
||||
org-agenda-span 'week)
|
||||
:config
|
||||
(evil-set-initial-state 'org-agenda-mode 'normal)
|
||||
:general
|
||||
@@ -3438,8 +3439,7 @@ on your machine.
|
||||
(define-minor-mode clang-format-mode
|
||||
"On save formats the current buffer via clang-format."
|
||||
:lighter nil
|
||||
(let ((save-func (proc-int
|
||||
(clang-format-buffer))))
|
||||
(let ((save-func (proc-int (clang-format-buffer))))
|
||||
(if clang-format-mode
|
||||
(add-hook 'before-save-hook save-func nil t)
|
||||
(remove-hook 'before-save-hook save-func t))))
|
||||
@@ -4233,11 +4233,44 @@ effectively.
|
||||
:init
|
||||
(setq tab-bar-close-button-show nil
|
||||
tab-bar-format '(tab-bar-format-history
|
||||
tab-bar-format-tabs tab-bar-separator)
|
||||
tab-bar-format-tabs
|
||||
tab-bar-separator)
|
||||
tab-bar-show 1
|
||||
tab-bar-auto-width t
|
||||
tab-bar-auto-width-max '((100) 20)
|
||||
tab-bar-auto-width-min '((20) 2))
|
||||
tab-bar-auto-width-max '((150) 20)
|
||||
tab-bar-auto-width-min '((20) 2)
|
||||
tab-bar-tab-name-function #'+tab-bar/name-func)
|
||||
|
||||
(defvar +tab-bar/buffer-name-max-len 7)
|
||||
(defvar +tab-bar/project-name-max-len 10)
|
||||
|
||||
(defun +tab-bar/--abbreviate-project-name ()
|
||||
(if-let* ((project (project-current))
|
||||
(name (project-name project)))
|
||||
(if (> (length name) +tab-bar/project-name-max-len)
|
||||
(concat (substring name 0 +tab-bar/project-name-max-len) "<...>")
|
||||
name)
|
||||
""))
|
||||
|
||||
(defun +tab-bar/--abbreviate-buffer-name ()
|
||||
(let* ((buffer-name (buffer-name (window-buffer (or (minibuffer-selected-window)
|
||||
(and (window-minibuffer-p)
|
||||
(get-mru-window))))))
|
||||
(ext (string-match "\\.[[:word:]]+$" buffer-name)))
|
||||
(if (> (or ext (length buffer-name)) +tab-bar/buffer-name-max-len)
|
||||
(thread-last
|
||||
(if ext
|
||||
(substring buffer-name ext)
|
||||
"")
|
||||
(concat (substring buffer-name 0 +tab-bar/buffer-name-max-len) "<...>"))
|
||||
buffer-name)))
|
||||
|
||||
(defun +tab-bar/name-func ()
|
||||
(if (null (project-current))
|
||||
(+tab-bar/--abbreviate-buffer-name)
|
||||
(format "%s[%s]"
|
||||
(+tab-bar/--abbreviate-project-name)
|
||||
(+tab-bar/--abbreviate-buffer-name))))
|
||||
:general
|
||||
(tab-leader
|
||||
"R" #'tab-rename
|
||||
@@ -4294,6 +4327,8 @@ Recentf provides a method of keeping track of recently opened files.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package recentf
|
||||
:defer t
|
||||
:init
|
||||
(setq recentf-auto-cleanup 'never)
|
||||
:hook (after-init-hook . recentf-mode)
|
||||
:general
|
||||
(file-leader
|
||||
|
||||
@@ -89,14 +89,16 @@
|
||||
(require 'eshell)
|
||||
(require 'eglot))
|
||||
|
||||
(require 'gnutls)
|
||||
(add-to-list 'gnutls-trustfiles "/usr/local/etc/openssl/cert.pem")
|
||||
|
||||
(setq gc-cons-threshold (* 100 1024 1024) ; ~100MiB
|
||||
gc-cons-percentage 0.1 ; 10% of heap allocation => collect garbage
|
||||
read-process-output-max (* 5 1024 1024) ; ~5MiB
|
||||
;; FIXME: Problem with memory-report after running Emacs for a
|
||||
;; bit, causes a Lisp nesting error, so I just set it up really
|
||||
;; high so it doesn't reach that.
|
||||
max-lisp-eval-depth 999999
|
||||
garbage-collection-messages t)
|
||||
max-lisp-eval-depth 999999)
|
||||
|
||||
(provide 'init)
|
||||
;;; init.el ends here
|
||||
|
||||
Reference in New Issue
Block a user