{"items": [{"author": "Josh", "source_link": "https://www.facebook.com/jefftk/posts/767696028882?comment_id=767696268402", "anchor": "fb-767696268402", "service": "fb", "text": "A nice example of why people who think that Emacs vs vi is just a matter of whether you prefer modal editing or control keys, are missing something. :^)<br><br>(Maybe you can do this sort of stuff with vi, but I don't think you can. And I've repeatedly done things over the years that had a vi user saying \"holy what how on earth did you just do that\", and it was something like this, a keybinding that ran complex functions in specific contexts.)", "timestamp": "1453406943"}, {"author": "Jeff&nbsp;Kaufman", "source_link": "https://www.facebook.com/jefftk/posts/767696028882?comment_id=767696268402&reply_comment_id=767696363212", "anchor": "fb-767696268402_767696363212", "service": "fb", "text": "&rarr;&nbsp;On the other hand, as a fraction of time I spend using emacs this is just tiny.  If vi were 1% faster for me to work in that would have saved me far more time over the past decade.", "timestamp": "1453407019"}, {"author": "Cam", "source_link": "https://www.facebook.com/jefftk/posts/767696028882?comment_id=767696368202", "anchor": "fb-767696368202", "service": "fb", "text": "I've been using org-mode - one file! - for my calendar and to do list for four years now, and this is awesome. I can't wait to go apply it. Thanks for sharing, Jeff! PS, if you'd be up for describing your calendaring in more detail sometime (or already have), I'd be eager to learn more.", "timestamp": "1453407051"}, {"author": "Jeff&nbsp;Kaufman", "source_link": "https://www.facebook.com/jefftk/posts/767696028882?comment_id=767696368202&reply_comment_id=767696717502", "anchor": "fb-767696368202_767696717502", "service": "fb", "text": "&rarr;&nbsp;\"if you'd be up for describing your calendaring in more detail sometime\"<br><br>It's kind of nuts.  I started off with just the html table, then I added an ical feed [1] and a script to add entries automatically [2].  A lot of this worked because I had been consistent enough when doing it by hand that I could automate it later [3].<br><br>[1] http://www.jefftk.com/p/ical-format-schedule<br>[2] https://github.com/.../websc.../blob/master/proc_schedule.py<br>[3] http://www.jefftk.com/.../consistency-for-progressive...", "timestamp": "1453407381"}, {"author": "Ben", "source_link": "https://www.facebook.com/jefftk/posts/767696028882?comment_id=767697900132", "anchor": "fb-767697900132", "service": "fb", "text": "Escape Meta Alt Control Shift (I use it too)", "timestamp": "1453408208"}, {"author": "Jeff&nbsp;Kaufman", "source_link": "https://www.facebook.com/jefftk/posts/767696028882?comment_id=767697900132&reply_comment_id=767697994942", "anchor": "fb-767697900132_767697994942", "service": "fb", "text": "&rarr;&nbsp;What do you use ESC for if you have META?", "timestamp": "1453408253"}, {"author": "Ben", "source_link": "https://www.facebook.com/jefftk/posts/767696028882?comment_id=767697900132&reply_comment_id=767699232462", "anchor": "fb-767697900132_767699232462", "service": "fb", "text": "&rarr;&nbsp;It is supposed to just be silly one-liner... but as it turns for query-replace I press and release Esc followed by % rather than M-% because holding down three keys together has felt a little awkward.  Maybe a holdover from first learning it but I never bothered to unlearn it.  Alt does equal Meta though", "timestamp": "1453409092"}, {"author": "angelic_sedition", "source_link": "http://www.reddit.com/r/emacs/comments/421r94#cz6yd08", "anchor": "r-cz6yd08", "service": "r", "text": "Of course this is possible in vim (who uses vi?). It doesn&#39;t seem very pragmatic to me to create a new mode just to define keybindings that only apply to a single file. Also, the terminology in this article is pretty confusing (&quot;shortcuts&quot;).\n", "timestamp": 1453409863}, {"author": "cbr", "source_link": "http://www.reddit.com/r/emacs/comments/421r94#cz6yuhc", "anchor": "r-cz6yuhc", "service": "r", "text": "&rarr;&nbsp;\n<br><br>Of course this is possible in vim (who uses vi?)\n\n\n<br><br>I&#39;m confused; I didn&#39;t mention vi at all, so I&#39;m not sure what you&#39;re responding to.\n\n\n<br><br>It doesn&#39;t seem very pragmatic to me to create a new mode just to define keybindings that only apply to a single file.\n\n\n<br><br>What&#39;s a better way of defining per-file keybindings?\n\n\n<br><br>the terminology in this article is pretty confusing (&quot;shortcuts&quot;)\n\n\n<br><br>That looks like the standard name to me?\n", "timestamp": 1453410533}, {"author": "kaushalmodi", "source_link": "http://www.reddit.com/r/emacs/comments/421r94#cz71kbi", "anchor": "r-cz71kbi", "service": "r", "text": "&rarr;&nbsp;&rarr;&nbsp;\n<br><br>What&#39;s a better way of defining per-file keybindings?\n\n\n<br><br>There are few ways, which you can refer to in the linked SE/SO questions in my other post. \n\n\n<br><br>That looks like the standard name to me?\n\n\n<br><br>In &quot;Emacs&quot;-speak, it is more customary to refer to those as Key Bindings\n", "timestamp": 1453414387}, {"author": "cbr", "source_link": "http://www.reddit.com/r/emacs/comments/421r94#cz7w1n8", "anchor": "r-cz7w1n8", "service": "r", "text": "&rarr;&nbsp;&rarr;&nbsp;&rarr;&nbsp;\n<br><br>the linked SE/SO questions in my other post\n\n\n<br><br>Helpful, thanks!\n\n\n<br><br>In &quot;Emacs&quot;-speak, it is more customary to refer to those as Key Bindings\n\n\n<br><br>I see; I try to avoid using terms from smaller communities in place of other terms that are more widely understood.\n", "timestamp": 1453480403}, {"author": "angelic_sedition", "source_link": "http://www.reddit.com/r/emacs/comments/421r94#cz750u8", "anchor": "r-cz750u8", "service": "r", "text": "&rarr;&nbsp;&rarr;&nbsp;\n<br><br>I&#39;m confused; I didn&#39;t mention vi at all, so I&#39;m not sure what you&#39;re responding to.\n\n\n<br><br>I was referring to the comments.\n\n\n<br><br>What&#39;s a better way of defining per-file keybindings?\n\n\n<br><br>See the questions kaushalmodi linked. I use evil, so I&#39;d use evil-local-set-key, but it seems local-set-key (unlike the evil function) ends up defining the key for the major mode (which makes no sense to me).\n\n\n<br><br>That looks like the standard name to me?\n\n\n<br><br>I&#39;ve never heard anyone call key mappings/key bindings &quot;shortcuts&quot; when talking about emacs or vim or any keyboard-oriented software I can think of. &quot;Keyboard shortcuts&quot; is better but not really accurate since it usually implies that the keys are shortcuts for something you might normally do with the mouse. From the wikipedia page you link:\n\n\n<br><br>Keyboard shortcuts are typically a means for invoking one or more commands using the keyboard that would otherwise be accessible only through a menu, a pointing device, different levels of a user interface, or via a command-line interface. \n\n", "timestamp": 1453419748}, {"author": "cbr", "source_link": "http://www.reddit.com/r/emacs/comments/421r94#cz7vybd", "anchor": "r-cz7vybd", "service": "r", "text": "&rarr;&nbsp;&rarr;&nbsp;&rarr;&nbsp;\n<br><br>&quot;Keyboard shortcuts&quot; is better but not really accurate since it usually implies that the keys are shortcuts for something you might normally do with the mouse.\n\n\n<br><br>In this case I&#39;m making a &quot;keyboard shortcut&quot; for something I would otherwise do by invoking the function with M-x function-name.\n", "timestamp": 1453480270}, {"author": "kaushalmodi", "source_link": "http://www.reddit.com/r/emacs/comments/421r94#cz71eqe", "anchor": "r-cz71eqe", "service": "r", "text": "Here are few related questions on Emacs.SE/SO:\n\n\nKey bindings specific to a buffer\nFile-specific key-binding in emacs\n\n", "timestamp": 1453414152}, {"author": "ncsuwolf", "source_link": "http://www.reddit.com/r/emacs/comments/421r94#cz73vkf", "anchor": "r-cz73vkf", "service": "r", "text": "The way I would do this is\n\n(add-to-list &#39;auto-mode-alist ;; or &#39;magic-mode-alist\n     &#39;(&quot;regex-matching-files&quot; . (lambda ()\n                                  (enable-some-major-mode)\n                                  (local-set-key\n                                    (kbd &quot;key&quot;)\n                                    #&#39;whatever-command))))\n\n\n<br><br>The only problem is local-set-key is going to define the binding for the major mode, if that matters.\nI&#39;m not sure I really see a use case for this that wouldn&#39;t justify making a minor-mode which isn&#39;t that hard after all.\n", "timestamp": 1453417904}, {"author": "Todd", "source_link": "https://www.facebook.com/jefftk/posts/767696028882?comment_id=767732825142", "anchor": "fb-767732825142", "service": "fb", "text": "My contribution to this is that http://www.jefftk.com/past says 'The Pasy' in the title.", "timestamp": "1453427331"}]}