<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>emacs on Jaaved Ali Khan</title><link>https://jaaved.netlify.app/tags/emacs/</link><description>Recent content in emacs on Jaaved Ali Khan</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 18 Jul 2024 10:42:20 +0300</lastBuildDate><atom:link href="https://jaaved.netlify.app/tags/emacs/index.xml" rel="self" type="application/rss+xml"/><item><title>Literate Programming in Org Mode</title><link>https://jaaved.netlify.app/notes/202105110956-literate_programming/</link><pubDate>Thu, 18 Jul 2024 10:42:20 +0300</pubDate><guid>https://jaaved.netlify.app/notes/202105110956-literate_programming/</guid><description>tags Emacs Literate Programming CS # C-c C-,: select template C-c C-c: evaluate code inside source block UML diagrams with PlantUML # Python # :results value # Only if you use the header argument :results value the code of the block is wrapped by a function and the result of the code block is the return value of that function.
return 7 + 7 14 :results output # On the other hand * means that the code of the block is sent to the interpreter.</description></item><item><title>elisp</title><link>https://jaaved.netlify.app/notes/elisp--20220329-102110/</link><pubDate>Fri, 25 Aug 2023 09:43:49 +0400</pubDate><guid>https://jaaved.netlify.app/notes/elisp--20220329-102110/</guid><description>Summary # tags Emacs Lisp Basics # () # anything between braces is evaluated as a function
(message &amp;#34;Her age is: %d&amp;#34; 16) ; %d is for number list and cons # cons pair (aka cons cell or just cons) is a value type, and is a fundamental data structure in emacs lisp. List is made of cons pairs.
(A 2 &amp;#34;A&amp;#34;) ; A list of three elements. () ; A list of no elements (the empty list).</description></item><item><title>unbind keys in Emacs</title><link>https://jaaved.netlify.app/notes/202110031039-is_there_a_quick_way_to_unbind_keys_in_emacs_stack_overflow/</link><pubDate>Tue, 15 Aug 2023 22:25:47 +0400</pubDate><guid>https://jaaved.netlify.app/notes/202110031039-is_there_a_quick_way_to_unbind_keys_in_emacs_stack_overflow/</guid><description>tags global-unset-key and local-unset-key are useful, but it&amp;rsquo;s worth having an answer to this question that points out that the general way to unbind a key (for any keymap) is to define a binding of nil: (define-key KEYMAP KEY nil) ;; example (define-key python-mode-map (kbd &amp;#34;C-c C-v&amp;#34;) nil) (global-unset-key (kbd &amp;#34;C-c C-v&amp;#34;));; unset python mode map If you follow the code for either of those other functions, you&amp;rsquo;ll notice that this is exactly what they do.</description></item><item><title>web-mode</title><link>https://jaaved.netlify.app/notes/web_mode--20211115-192635/</link><pubDate>Tue, 15 Aug 2023 22:01:31 +0400</pubDate><guid>https://jaaved.netlify.app/notes/web_mode--20211115-192635/</guid><description>emacs mode # for editing , and many other formats
Debugging # Issue: while using replace feature, it was just changing first instance and the replace session was stoping # error: &amp;ldquo;Match data clobbered by buffer modification hooks&amp;rdquo;
Solution: # was not good solution because this disable all the change hook in buffer unintended conseqeunce: when a line is commented it&amp;rsquo;s face won&amp;rsquo;t change. (setq inhibit-modification-hooks nil);; If this variable is non-nil, all of the change hooks are disabled; none of them run.</description></item><item><title>key bindings - How to change/remove an existing but unneeded keybinding? - Emacs Stack Exchange</title><link>https://jaaved.netlify.app/notes/202109201415-key_bindings_how_to_change_remove_an_existing_but_unneeded_keybinding_emacs_stack_exchange/</link><pubDate>Mon, 10 Jul 2023 14:21:38 +0400</pubDate><guid>https://jaaved.netlify.app/notes/202109201415-key_bindings_how_to_change_remove_an_existing_but_unneeded_keybinding_emacs_stack_exchange/</guid><description>(define-key speedbar-mode-map &amp;ldquo;\M-p&amp;rdquo; nil) should remove the binding of M-p from the speedbar map, so that it no longer interferes with your binding for ace-window.
You&amp;rsquo;ll need to call this after speedbar-mode is loaded for it to have effect. Since you&amp;rsquo;re using use-package, you can accomplish this by adding it as a :config option, e.g.,
(use-package sr-speedbar :ensure t :defer t :config (define-key speedbar-mode-map &amp;#34;\M-p&amp;#34; nil) ...) More generally, you can use eval-after-load: (eval-after-load &amp;#34;speedbar&amp;#34; &amp;#39;(define-key speedbar-mode-map &amp;#34;\M-p&amp;#34; nil))</description></item><item><title>Yasnippet</title><link>https://jaaved.netlify.app/notes/202105201636-yasnippet/</link><pubDate>Sat, 14 Jan 2023 20:07:19 +0400</pubDate><guid>https://jaaved.netlify.app/notes/202105201636-yasnippet/</guid><description>Commands and functions fc # position ease box interval due front 2.20 4 13.01 2021-11-01T16:30:58Z `yas-expand` bound &amp;gt; TAB tries to expand snippet abbrev before point.
yas-insert-snippet &amp;gt; my custom shortcut is &amp;gt; C-. list all the available snippets, with names
`company-yasnippet` &amp;gt; tries to auto complete available snippets &amp;gt; C-, helps in completing with snippet key
yas-describe-table &amp;gt; lists table of snippets available in the current mode with key and description</description></item></channel></rss>