WEBVTT captioned by sachac, verified by MyTerminal NOTE Introduction 00:00:01.111 --> 00:00:03.135 Hello, I am Mohammed Ismail Ansari, 00:00:03.355 --> 00:00:04.558 also known as MyTerminal. 00:00:05.259 --> 00:00:07.403 I am an electronics engineer by education, 00:00:07.944 --> 00:00:10.108 an automobile engineer by aspiration, 00:00:10.429 --> 00:00:12.152 and a software engineer by profession 00:00:12.232 --> 00:00:14.576 for the past 17 years. 00:00:14.597 --> 00:00:17.221 I love learning and talking about productivity, 00:00:17.242 --> 00:00:19.626 lists, and all kinds of tools. 00:00:19.707 --> 00:00:23.354 Today, I'll talk about how Emacs has been my portable user space 00:00:23.555 --> 00:00:26.500 across operating systems over the last decade and more. NOTE Summary 00:00:27.182 --> 00:00:30.087 I will talk in brief about my journey and experience 00:00:30.127 --> 00:00:33.995 with each of the three major operating systems I've used Emacs on, 00:00:34.656 --> 00:00:37.662 eventually leading to my reusable Emacs configuration 00:00:37.762 --> 00:00:39.606 that I call super-emacs. NOTE Operating Platforms 00:00:40.514 --> 00:00:42.437 I used to believe that all software 00:00:42.497 --> 00:00:45.401 was available for only one operating system. 00:00:45.421 --> 00:00:47.765 And that is because, long time ago, 00:00:47.785 --> 00:00:51.310 at a desk far, far away from where I'm sitting now, 00:00:51.330 --> 00:00:53.894 .exe files was all that I knew about. NOTE Windows 00:00:55.236 --> 00:00:58.400 So back when Windows was the only means to use a computer 00:00:58.561 --> 00:01:01.485 at my school, college, work and home, 00:01:02.206 --> 00:01:05.150 I did not imagine one could use Emacs on Windows as well, 00:01:05.571 --> 00:01:07.534 when I heard about it for the first time. 00:01:07.801 --> 00:01:10.024 But thanks to a friend for lighting the fire 00:01:10.145 --> 00:01:12.228 by splitting windows on his work machine 00:01:12.308 --> 00:01:14.211 during that enlightening afternoon 00:01:14.351 --> 00:01:16.234 just before I was leaving for the day, 00:01:16.835 --> 00:01:20.801 it did, for the most part, reduce my dependency on Visual Studio, 00:01:21.422 --> 00:01:25.067 eventually replacing it all together a few years later. 00:01:25.317 --> 00:01:28.603 I synced my configuration across machines at home 00:01:28.743 --> 00:01:33.091 and work through a GitHub repo I called EmacsConfiguration, 00:01:33.111 --> 00:01:36.677 totally unaware that it would one day become my dotfiles in some form. 00:01:37.318 --> 00:01:39.182 I hoarded packages left and right, 00:01:39.422 --> 00:01:41.706 including the ones that I did not need, 00:01:42.040 --> 00:01:45.628 lost my work emails due to a wrong configuration with mew.el 00:01:46.189 --> 00:01:48.815 in an attempt to replace Microsoft Outlook, 00:01:48.835 --> 00:01:50.579 teamed up with the same friend of mine 00:01:50.659 --> 00:01:53.385 to demo the power of Emacs macros across teams 00:01:53.906 --> 00:01:56.893 in hopes to get more people to discover and use it. 00:01:57.397 --> 00:02:01.103 I started publishing my own arguably lesser useful packages 00:02:01.404 --> 00:02:03.828 and then switched over to Marmalade repo 00:02:03.928 --> 00:02:06.112 to get around the review process with MELPA. 00:02:06.813 --> 00:02:08.997 I did even create my own color theme 00:02:09.037 --> 00:02:11.281 to make Emacs appear more like I wanted to 00:02:11.802 --> 00:02:13.485 and used it with theme-looper, 00:02:13.585 --> 00:02:16.931 which is almost my most useful Emacs package to date, 00:02:17.131 --> 00:02:20.637 but also one that I do not use myself anymore. NOTE Linux 00:02:21.089 --> 00:02:23.132 My switch to Linux made me realize 00:02:23.172 --> 00:02:25.456 that the git repo EmacsConfiguration 00:02:25.616 --> 00:02:29.182 was actually dotfiles and would later hold much more, 00:02:29.322 --> 00:02:31.205 including my workstation setup scripts 00:02:31.325 --> 00:02:33.469 for multiple operating systems at once 00:02:33.970 --> 00:02:35.853 and also several utility scripts. 00:02:36.834 --> 00:02:38.336 My tiling window manager setup 00:02:38.417 --> 00:02:40.159 had perfect parity with Emacs, 00:02:40.560 --> 00:02:43.705 and everything felt like a single system inside out. 00:02:44.157 --> 00:02:47.740 Needless to say, there was no more confusion about the home directory 00:02:47.941 --> 00:02:49.802 as it was in the case of Windows, 00:02:50.183 --> 00:02:53.226 and there was no more a need for add-ons like Cygwin 00:02:53.606 --> 00:02:55.328 to emulate a usable shell. 00:02:56.769 --> 00:02:58.511 Hoarding of packages did not stop 00:02:59.111 --> 00:03:01.654 and after adopting heavier packages like Helm, 00:03:02.194 --> 00:03:05.437 I even had to implement my own lazy loading system of packages 00:03:05.938 --> 00:03:07.599 that would improve startup times 00:03:08.120 --> 00:03:09.961 as I never used Emacs server 00:03:10.422 --> 00:03:13.725 and every single Emacs launch was a standalone instance. 00:03:14.853 --> 00:03:18.178 theme-looper now received more love from not only myself 00:03:18.579 --> 00:03:20.983 but also several other strangers on the web 00:03:21.363 --> 00:03:25.550 in form of code fixes, suggestions, and new features. 00:03:25.570 --> 00:03:28.695 Needless to say, being able to give back to the community, 00:03:28.715 --> 00:03:30.719 no matter in how small of a capacity, 00:03:30.819 --> 00:03:33.944 was pretty fulfilling. NOTE macOS 00:03:33.964 --> 00:03:35.566 I've also had a chance to experience 00:03:35.586 --> 00:03:38.050 Emacs with macOS at work 00:03:38.491 --> 00:03:42.177 and even on my personal setup for four years a while ago. 00:03:42.781 --> 00:03:45.752 GNU Emacs was still my tool of choice there, 00:03:45.772 --> 00:03:49.686 however, I learned that there were many more ways to get Emacs on macOS 00:03:50.208 --> 00:03:52.757 than I had seen on the other two platforms. 00:03:53.716 --> 00:03:57.081 It was during that time when I made Emacs my daily driver 00:03:57.561 --> 00:04:00.065 and made significant improvements to my configuration. 00:04:01.046 --> 00:04:03.630 I wrote my custom add-on to projectile-mode 00:04:03.790 --> 00:04:07.876 in order to work with projects more in the way it suited my workflow. 00:04:07.896 --> 00:04:10.820 These additions were not approved by the package maintainer 00:04:10.880 --> 00:04:14.365 so I supplemented it in an independent repo of my own 00:04:14.585 --> 00:04:16.567 which by the way I still use until this date. 00:04:17.678 --> 00:04:19.120 I discovered telephone-line 00:04:19.260 --> 00:04:22.884 as a great alternative to the other mode-line extensions, 00:04:22.904 --> 00:04:25.887 adopted perspective.el for being able to work 00:04:25.927 --> 00:04:28.070 with persistent workspaces, 00:04:28.090 --> 00:04:31.233 and helped bridge a few gaps by submitting merge requests 00:04:31.514 --> 00:04:34.577 to package maintainers for the ones I was using. NOTE How Emacs Influenced My Toolset 00:04:34.597 --> 00:04:37.941 During all these years, Emacs did not only help me as a user, 00:04:38.041 --> 00:04:41.425 but also influenced the other tools in my toolset. 00:04:41.405 --> 00:04:44.829 Firstly, I liked the idea of being able to use the same tool 00:04:44.889 --> 00:04:46.070 across operating systems 00:04:46.611 --> 00:04:50.215 and then, more importantly, being able to work on the data 00:04:50.655 --> 00:04:52.257 without locking myself with a tool. 00:04:53.238 --> 00:04:56.462 Slowly, I turned most of my data into plain text 00:04:56.902 --> 00:04:59.345 and that means if I'm looking for a new tool 00:04:59.465 --> 00:05:02.688 for a new use case, I'd expect to be able to read 00:05:03.309 --> 00:05:06.012 or edit the data from within Emacs. 00:05:06.363 --> 00:05:09.246 Add to it my carefully architected syncthing network 00:05:09.326 --> 00:05:11.768 consisting of about 15 nodes. 00:05:11.788 --> 00:05:14.911 Whether it is a Logseq graph or an Obsidian vault, 00:05:15.472 --> 00:05:17.694 as far as the data is available to me, 00:05:17.714 --> 00:05:18.715 I can still work with it 00:05:18.855 --> 00:05:22.097 in arguably the most efficient way. NOTE Sharing my Configs 00:05:22.098 --> 00:05:23.500 Just like my dotfiles, 00:05:23.520 --> 00:05:26.002 I've always been proud of my Emacs configuration, 00:05:26.383 --> 00:05:29.085 which is why sharing it has been a focus for me. 00:05:30.206 --> 00:05:31.728 I've been through numerous approaches 00:05:31.808 --> 00:05:34.430 for both maintaining and sharing them 00:05:34.591 --> 00:05:36.032 over the past 14 years. 00:05:36.603 --> 00:05:39.988 After turning EmacsConfiguration git repo into dotfiles 00:05:40.048 --> 00:05:42.672 to hold much more than just Emacs config files, 00:05:43.293 --> 00:05:45.816 I extracted it back into a Git repo of its own 00:05:46.177 --> 00:05:47.979 to have a better separation of concerns. 00:05:48.820 --> 00:05:50.282 Fast forwarding a few approaches 00:05:50.783 --> 00:05:53.848 brings us to the next major topic I wanted to cover today, 00:05:54.228 --> 00:05:55.590 which is super-emacs. NOTE super-emacs 00:05:56.448 --> 00:05:59.931 I have been maintaining super-emacs since almost 12 years 00:06:00.371 --> 00:06:02.913 and I wanted it to be a better starting configuration 00:06:03.013 --> 00:06:05.896 for someone who did not have the time or motivation 00:06:06.256 --> 00:06:07.517 to build one for themselves. 00:06:08.518 --> 00:06:11.300 It has evolved quite a lot from what it used to be earlier 00:06:11.741 --> 00:06:13.502 but the idea behind it is still the same. NOTE super-emacs: Basics 00:06:15.404 --> 00:06:18.847 I've made an attempt to keep super-emacs as minimal as possible 00:06:18.887 --> 00:06:21.009 with only about 50 external packages 00:06:21.289 --> 00:06:24.051 while also providing a reasonable amount of customization 00:06:24.251 --> 00:06:26.353 over out-of-the-box configuration. 00:06:26.722 --> 00:06:29.285 I've also tried to keep it as generic as possible 00:06:29.725 --> 00:06:33.590 with the least amount of subjective elements from myself. 00:06:33.610 --> 00:06:35.012 It has a minimal interface 00:06:35.052 --> 00:06:37.294 with almost all visual elements hidden 00:06:37.595 --> 00:06:40.478 except for the window, mode line and mini buffer. 00:06:41.759 --> 00:06:44.922 My own overcast theme makes certain elements 00:06:44.923 --> 00:06:46.925 like the active window stand out better. 00:06:48.267 --> 00:06:49.849 It comes with dual configuration 00:06:49.969 --> 00:06:52.572 for text and graphical-based sessions 00:06:52.652 --> 00:06:56.256 with special effort made to maintain them separately. 00:06:56.236 --> 00:06:57.979 It features easier buffer 00:06:58.100 --> 00:07:00.364 and window navigation and management, 00:07:00.384 --> 00:07:01.687 quick toggles and more, 00:07:02.248 --> 00:07:04.492 all nested within a set of four key bindings 00:07:04.613 --> 00:07:08.300 to avoid collisions with otherwise popular key bindings. 00:07:08.320 --> 00:07:10.545 The telephone-line helps make the mode line 00:07:10.605 --> 00:07:13.010 more informative and visually pleasing 00:07:13.150 --> 00:07:15.274 without much performance overhead. 00:07:15.727 --> 00:07:16.951 There are numerous tweaks 00:07:17.031 --> 00:07:18.716 for a better programming experience 00:07:18.816 --> 00:07:22.226 with several included language modes, an LSP server, 00:07:23.189 --> 00:07:25.836 and an overall enjoyable text editing experience 00:07:25.937 --> 00:07:28.183 with support for multiple named workspaces 00:07:28.564 --> 00:07:30.951 that can be persisted between sessions. NOTE super-emacs: Setting Up 00:07:31.758 --> 00:07:34.082 Now using super-emacs isn't very different 00:07:34.142 --> 00:07:36.886 than using your own Emacs configuration, 00:07:36.906 --> 00:07:38.569 though I've tried my hand at a script 00:07:38.950 --> 00:07:41.294 that would attempt to take care of the setup for you 00:07:41.674 --> 00:07:43.257 while also attempting to install 00:07:43.337 --> 00:07:45.801 a few external dependencies using Crater 00:07:46.182 --> 00:07:47.984 which is my own meta package manager 00:07:48.125 --> 00:07:50.188 I created for use cases like these. NOTE super-emacs: How I Use It Differently 00:07:50.843 --> 00:07:52.786 A few years ago, in order to make sure 00:07:52.806 --> 00:07:54.708 I did not abandon super-emacs, 00:07:55.048 --> 00:07:56.530 instead of maintaining it separately 00:07:56.630 --> 00:07:58.453 from my personal Emacs configuration, 00:07:59.054 --> 00:08:01.617 I decided to switch to using super-emacs myself. 00:08:02.278 --> 00:08:04.019 However, as I've experimented with 00:08:04.020 --> 00:08:06.503 a few other minimal starter packages earlier, 00:08:06.804 --> 00:08:10.168 the way I consume super-emacs is a little different. 00:08:10.148 --> 00:08:12.454 I just have to place another configuration 00:08:12.494 --> 00:08:14.779 in this directory that is hosted in my dotfiles 00:08:15.060 --> 00:08:16.984 and on startup, it would prompt me 00:08:17.065 --> 00:08:18.668 for the config to load instead. 00:08:19.350 --> 00:08:22.317 As super-emacs is the only one over there at the moment, 00:08:22.337 --> 00:08:25.204 it bypasses the prompt as if there isn't any. NOTE super-emacs: A Few Recent Major Changes 00:08:26.399 --> 00:08:28.683 There have been several recent major improvements 00:08:28.723 --> 00:08:30.647 that I would specifically like to mention. 00:08:31.488 --> 00:08:33.491 To start with a not so recent one, 00:08:33.511 --> 00:08:35.336 I had to come up with a custom package 00:08:35.395 --> 00:08:37.239 installation strategy with Quelpa, 00:08:37.520 --> 00:08:40.365 conditionally selecting the appropriate source. 00:08:40.385 --> 00:08:42.207 This helps me choose between stable 00:08:42.429 --> 00:08:44.172 and bleeding edge package versions. 00:08:45.265 --> 00:08:48.871 Integration with your favorite LLMs is achieved with ellama 00:08:49.211 --> 00:08:50.313 plus a custom wrapper 00:08:50.373 --> 00:08:53.518 that brings your model closer to the buffer or the mini buffer. 00:08:54.319 --> 00:08:56.102 There's also a splash screen 00:08:56.182 --> 00:08:59.427 that shows some info about the session and the host system 00:09:00.068 --> 00:09:01.931 and also contains a few shortcuts 00:09:01.971 --> 00:09:04.675 to resume back from where you left in an earlier session. NOTE super-emacs: Extending super-emacs 00:09:05.802 --> 00:09:07.886 I've been approached by a few individuals 00:09:08.107 --> 00:09:11.935 asking for recommended ways one can customize super-emacs for themselves 00:09:12.376 --> 00:09:13.779 and the following are the two means 00:09:14.019 --> 00:09:16.064 I've implemented that one can use 00:09:16.404 --> 00:09:18.208 until I come up with something better. 00:09:19.285 --> 00:09:22.409 Apart from the config files for basic and standard modes, 00:09:22.429 --> 00:09:24.212 I have dedicated a variables file 00:09:24.332 --> 00:09:26.555 that lets you tweak a few surface level 00:09:26.675 --> 00:09:27.997 elements of super-emacs. 00:09:29.078 --> 00:09:31.561 Apart from that, the config files for the two modes 00:09:31.782 --> 00:09:33.504 are loaded in a numerical order, 00:09:33.804 --> 00:09:36.288 so you're free to get creative with adding more files 00:09:36.468 --> 00:09:38.170 in a way that doesn't change the order 00:09:38.210 --> 00:09:40.093 of the files that are already included. 00:09:41.014 --> 00:09:42.777 How you would maintain your customization 00:09:42.937 --> 00:09:46.862 while also being in sync with the upstream is still a minor challenge. NOTE super-emacs: Contributions from Others 00:09:47.821 --> 00:09:49.843 super-emacs couldn't have been what it is 00:09:49.903 --> 00:09:51.666 without feedback and suggestions 00:09:51.766 --> 00:09:53.568 from a few friends over the internet. 00:09:54.549 --> 00:09:56.571 I realize I could have done a better job 00:09:56.632 --> 00:09:58.294 at making more of those happen, 00:09:58.314 --> 00:10:00.736 but at least with the fixes and improvements 00:10:00.817 --> 00:10:01.898 that could make it through, 00:10:02.418 --> 00:10:03.980 I couldn't have been more appreciative 00:10:04.080 --> 00:10:05.142 to these individuals. NOTE super-emacs: Future of super-emacs 00:10:06.263 --> 00:10:09.827 From the future standpoint, super-emacs will still continue to be 00:10:09.887 --> 00:10:14.193 my personal Emacs configuration running on all my machines, 00:10:14.213 --> 00:10:17.136 but beyond that, I'm open to your ideas. 00:10:17.690 --> 00:10:20.134 With the impressive starter packs that I came across 00:10:20.314 --> 00:10:22.337 back when I was starting my journey with Emacs 00:10:22.918 --> 00:10:25.141 and with my limited knowledge of Emacs Lisp, 00:10:25.682 --> 00:10:28.486 I did not intend to compete with any of those. 00:10:28.506 --> 00:10:30.730 Having said that, even if I succeed 00:10:30.750 --> 00:10:32.893 in helping a few people with it, 00:10:32.913 --> 00:10:34.956 it would mean the world to me. 00:10:34.936 --> 00:10:38.400 Honestly, I haven't been following Emacs much these days 00:10:38.700 --> 00:10:41.983 as much as I used to earlier but I do hope to get back 00:10:42.043 --> 00:10:44.326 to making super-emacs even better someday 00:10:44.946 --> 00:10:47.769 as soon as my hyperactive mind lets me be free 00:10:47.849 --> 00:10:51.373 from a hundred other things it keeps throwing at me. NOTE super-emacs: Acknowledgements 00:10:51.393 --> 00:10:54.276 Before I close, I'd like to mention a couple of people 00:10:54.376 --> 00:10:55.817 who have been truly instrumental 00:10:55.957 --> 00:10:57.519 in my experience with Emacs 00:10:57.999 --> 00:10:59.961 without whom I wouldn't have been sharing 00:11:00.042 --> 00:11:01.483 super-emacs with you today. 00:11:02.290 --> 00:11:05.394 Sacha Chua has been one of the few friendly faces 00:11:05.974 --> 00:11:08.057 whom I got to learn a lot from, 00:11:08.077 --> 00:11:10.980 especially during my early days with Emacs. 00:11:11.000 --> 00:11:13.263 Ryan D'Souza, my friend and mentor, 00:11:13.583 --> 00:11:15.605 was the one to spark my interest in Emacs 00:11:15.725 --> 00:11:18.048 by merely splitting buffers. 00:11:18.068 --> 00:11:20.110 And then, there are many others 00:11:20.190 --> 00:11:21.432 whom I couldn't mention here, 00:11:21.672 --> 00:11:25.256 but if you are one of those, thank you. NOTE Outro 00:11:25.276 --> 00:11:27.319 Thanks for hearing me talk about Emacs today. 00:11:27.859 --> 00:11:29.241 May the learning never stop, 00:11:29.781 --> 00:11:31.183 and may the maker watch over you.