Commit Graph

656 Commits

Author SHA1 Message Date
Aryadev Chavali
ebe69ceb21 (Emacs/config)~Moved bookmark config under org-mode
It is called org-bookmark, after all.
2024-06-11 18:09:24 +01:00
Aryadev Chavali
19619813d1 (Emacs/elisp)~org-bookmark now auto loads required org functions
Instead of (require 'org) which loads the entire thing and is quite
expensive, let's autoload what we need.  In the config we load
org-bookmark before org-mode so we may as well do this.

It's also just good practice regardless.
2024-06-11 17:28:03 +01:00
Aryadev Chavali
3cb1a2b616 (Emacs/config)~org-capture template for bookmarks
Now we get completion (using the clipboard by default) for a URL,
which is set as a property for the bookmark.  It also gets a timestamp
and we can fill in other text.  This is a modification due to the
changes in org-bookmark.
2024-06-11 17:24:51 +01:00
Aryadev Chavali
c64708aaaa (Emacs/elisp)~massively reworked bookmarking system
Now it can:
- cache results until bookmarks file is modified, so we don't need to
open the file again if we've already figured everything out.  This is
in-memory and not as a file

- a proper dispatching list which has pairs of form (PATTERNS . FUNC)
so the dispatching system is a bit more abstract and easier to add to

- use a URL property in org headings to get the bookmark URL rather
than having it as part of the body of the entry.  This means the body
is now free to house any content without affecting the overall
function of the system, such as notes or subtrees for related
bookmarks.
2024-06-11 16:56:52 +01:00
Aryadev Chavali
b97dbca3ce (Emacs/config|straight)Some updates 2024-06-11 04:24:56 +01:00
Aryadev Chavali
172be6aa78 (Emacs/config)~Reworked introduction 2024-06-11 04:24:21 +01:00
Aryadev Chavali
ba4d0cabf5 (Emacs/config)~change some symbols for common lisp 2024-06-11 02:43:29 +01:00
Aryadev Chavali
e4d240e202 (Emacs/config)-:pretty sections for eshell,java,c#,c/c++
Honestly not that useful for eshell (made it annoying to read text),
whereas in c/c++ it made looking at certain formatted code really
annoying.

Java and C# aren't used anyway.

In most cases, when reading code in a non terse language like C/C++,
C# or Java I'd rather just /see/ the code.  In something like Lisp or
Python the symbols just make it that much easier to read code.
2024-06-11 02:33:25 +01:00
Aryadev Chavali
51cd0ee896 (Emacs/config)~small changes, mostly explanations and optimisations 2024-06-11 02:31:20 +01:00
Aryadev Chavali
ef028dfd4b (Emacs/config)~Make basics one single source block and explanation 2024-06-11 02:27:08 +01:00
Aryadev Chavali
3de452b775 (Emacs/elisp)+Website directory to search elisp 2024-06-11 01:22:38 +01:00
Aryadev Chavali
efae109a68 (Emacs/early-init.el)~Change alpha values 2024-06-11 01:22:27 +01:00
Aryadev Chavali
810ea252ed (Emacs/eshell)~new aliases 2024-06-11 01:22:10 +01:00
Aryadev Chavali
830f288423 (Emacs/elisp)~personal primary no longer has differing fonts
Now we just use Hack
2024-06-11 01:21:05 +01:00
Aryadev Chavali
b138739a63 (Emacs)~Clean buffer list code 2024-06-10 02:32:33 +01:00
Aryadev Chavali
a882d15a3f Merge remote-tracking branch 'origin/master' 2024-05-31 20:54:47 +05:30
Aryadev Chavali
47655b7f03 (Emacs/elisp)~current work in org bookmark 2024-05-31 20:53:59 +05:30
Aryadev Chavali
9ef78de263 (Emacs)~loads of changes to config 2024-05-31 20:52:38 +05:30
Aryadev Chavali
7182d22050 (Emacs)~changed snippets 2024-05-31 20:50:49 +05:30
Aryadev Chavali
17348abe78 Merge remote-tracking branch 'origin/master'
For desktop
2024-05-31 16:02:21 +01:00
Aryadev Chavali
cfe9d354aa (Emacs/whitespace)-lines-tail from whitespace-style 2024-05-13 18:41:53 +05:30
Aryadev Chavali
e7321c7de6 (Emacs/org-capture)~set bookmark capture template to not make TODO 2024-05-13 18:41:06 +05:30
Aryadev Chavali
18f7d6b9da (Emacs/config)+scrolling functionality 2024-05-13 18:40:45 +05:30
Aryadev Chavali
fdef946d65 (Emacs/custom)~clean up some old customisations 2024-05-13 17:36:40 +05:30
Aryadev Chavali
97ac65872a General commits
Cannot be bothered to add message
2024-05-13 17:33:16 +05:30
Aryadev Chavali
ab2742cd3e (Emacs/elisp|config)+org-bookmark manager
Opens bookmarks from ~/Text/bookmarks.org with a dispatcher.
2024-05-13 17:32:38 +05:30
Aryadev Chavali
ce660d9a2a (Emacs/config)~Fix urls 2024-05-13 17:15:37 +05:30
Aryadev Chavali
ef5ac4371a (Emacs/elisp)~updated themes a bit 2024-05-13 17:03:27 +05:30
Aryadev Chavali
955f2a223c (Emacs/config|init)~cut my init time to just a second
I had a problem with after-init-hook which would (while supposedly
keeping (emacs-init-time) under 1.2 seconds) take ages to start emacs
just due to how many things were starting up using it.  So I removed
all the after-init-hook functions and instead aggressively demand the
stuff I need and defer everything else through ":defer", ":after",
":hook" and ":general".

Happy to say my boot time is now actually 1.2 seconds without
compilation.
2024-05-13 17:02:56 +05:30
Aryadev Chavali
8fcdfac661 (Emacs)~Merged app.org, lang.org and core.org back into config.org
Just makes it easier to profile and deal with compilation
2024-05-13 17:01:03 +05:30
Aryadev Chavali
5fee49b69d (Emacs/elisp)+search.el
I can now completing-read search git files from a ton of repositories
AND grep them.
2024-05-12 21:12:32 +05:30
Aryadev Chavali
eacfab80dd (Emacs/config)+Custom function to generate tags from project root 2024-05-11 13:45:20 +05:30
Aryadev Chavali
5567f2647d (Emacs/core)~tabs now use r as a prefix key 2024-05-11 13:06:29 +05:30
Aryadev Chavali
ebf18a5209 (Emacs/app)+eww bookmark functionality
Search and edit bookmarks very quickly.
2024-05-11 13:06:08 +05:30
Aryadev Chavali
6aa3c170e9 (Emacs/*)~clean up text, change license of elisp packages to GPLv2 strictly 2024-05-11 13:05:41 +05:30
Aryadev Chavali
40240bbfd7 (Emacs/app)~changed project-root function and added aliases
project-root now uses project.el.  aliases for goto and project-root.
2024-05-11 13:04:45 +05:30
Aryadev Chavali
88ae6fc2e8 (Emacs/config)~Re-positioned xref and projectile 2024-05-11 13:04:07 +05:30
Aryadev Chavali
48b1410889 (Emacs/yasnippet)~cleaned up a TON of snippets 2024-05-11 13:02:20 +05:30
Aryadev Chavali
750722d463 (Emacs/yasnippet)~C++ snippets have been pruned and edited 2024-05-11 12:44:48 +05:30
Aryadev Chavali
41e85002dc (Emacs)-Emacs Lisp snippets
Don't use ANY of them anyway.
2024-05-10 01:58:07 +05:30
Aryadev Chavali
d44273c668 (Emacs/yasnippet)+new snippet for macros in C/C++ 2024-05-10 01:05:54 +05:30
Aryadev Chavali
31329c3dab (Emacs/app)~+eshell/current-buffer command now uses <leader>T 2024-05-10 01:05:35 +05:30
Aryadev Chavali
7105788014 (Emacs/core)~Switched prefixes for tab and shell leader 2024-05-10 01:05:16 +05:30
Aryadev Chavali
a082b261e2 (Emacs/config)-telephone-line
Mode line also now includes project name in mode line
2024-05-10 01:04:38 +05:30
Aryadev Chavali
89ce0a3012 (Emacs/app)~dired-other(frame->window) and added dired-subdir binds 2024-05-08 01:35:25 +05:30
Aryadev Chavali
d4f4169b9c (Emacs/app)~rearranged dired config
Put more stuff in :general and it seems to work?!
2024-05-08 01:34:31 +05:30
Aryadev Chavali
a6fffa384c (Emacs/app|config)~w(grep|dired) have the same finish/abort binds
ZZ and ZQ.
2024-05-08 01:30:48 +05:30
Aryadev Chavali
d998ae45cf (Emacs/*)~disable a lot of packages
Don't use them most of the time so what's the need?

If I'm ever in the situation where I need to use these I hope I have
internet connection.
2024-05-08 01:30:04 +05:30
Aryadev Chavali
2450e47882 (Scripts|Emacs/app)~ported eshell banner to a script
Instead of doing it all in Emacs lisp (which while pretty fun to
write, is not fun to execute outside of Emacs), I wrote a shell script
which generates the same banners, then just linked
+eshell/banner-message to it.
2024-05-08 01:17:29 +05:30
Aryadev Chavali
4f2ec316e4 (Emacs/config|core)+some defers 2024-05-07 23:56:57 +05:30