|
emacs is pretty drat awesome. I tried to learn vim but I kept getting confused about what mode I was in. The extensibility of emacs is inspiring. You can customize it to do anything. I'm very much a emacs newbie, so I'll have plenty of questions for this thread. My first one is about using the shell in emacs. I've been using eshell over the normal M-x shell because it remembers past commands, but eshell doesn't support aliases. Is there a way to do that in eshell or is there a better shell I can use within emacs? Also, it seems I can only have one instance of eshell running at a time, is there a way around that? On my school accounts I can't use screen, ortherwise I'd use that for all my cool multitasking stuff.
|
# ¿ Oct 3, 2011 00:59 |
|
|
# ¿ May 10, 2024 13:43 |
|
So whats a good way to sync up my configuration across various computers? I've got a windows laptop that I use emacs on, a school account that I ssh into, and another class is suppose to set me up with another ssh account whenever the professor gets his act together. I'm not the most experienced guy on the command line so I was thinking of putting a config that I like on a webserver and have a little script wget it and move it to the proper place for .emacs to be. Maybe you experts know of something better? Also, for other people new to emacs, I've watched a few of the videos by rpdillon on youtube, he has several screencasts with some nice explanations. This one about setting up multiple little windows convinced me that emacs is powerful enough to spend the time to learn instead of sitting around in nano all day.
|
# ¿ Oct 3, 2011 06:42 |
|
What's the deal with org mode HTML export? I added a code:
Edit: I'm running Emacs 24, Org 7.9.3f, on Windows 7 PleasantDilemma fucked around with this message at 20:53 on Dec 12, 2013 |
# ¿ Dec 11, 2013 21:48 |
|
Hollow Talk posted:The HTML_HEAD option has been introduced in Org 8.x, if I am not mistaken. Since you are using the old stable version, you will have to use the older form: Yessssss Thanks for this buddy. The org docs don't mention the version requirements. I guess I should look into upgrading...
|
# ¿ Feb 4, 2014 23:12 |
|
Ok, when pressing page-up or page-down the cursor moves as I scroll through the file. But when I get to the top or bottom of the file, the cursor doesn't go all the way to the top or bottom. It just chills in the middle of the screen. What can I do about this? Also! holy crap I spent a few minutes and setup multiple cursors mode and now I can use emacs like how I use Sublime Text! It's actually hard for me to be productive in emacs because I keep getting excited about some package or mode and spend time reading about it instead of working. M-x package-list-packages is really fun to poke around in.
|
# ¿ May 12, 2014 20:28 |
|
Hey thread, Whats your flow to get tabs to work correctly? I'm in the javascript mode that comes with Emacs 24.3.1. I load a file that uses tabs for indent, and tabs are rendered as 8 spaces. When I press the tab key, I get 4 spaces inserted. I know every mode can set it up differently. What are the usual functions/variables that need to be tweaked to get tabs the way you like? My goal is to edit this javascript file and press tab and get a tab character that renders as 4 spaces.
|
# ¿ May 21, 2014 19:42 |
|
Does every major mode have a hook? I added this to my .emacsLisp code:
|
# ¿ May 22, 2014 18:58 |
|
Pham Nuwen posted:it looks like the javascript mode is js-mode, so try (add-hook 'js-mode-hook 'fn-fix-the-tabs) This did it for my Js stuff, and the php-mode-hook does work, I didn't realize that it wasn't enabling php-mode when I open a php file, it was still in fundamental haha. I added this and now I'm golden: Lisp code:
|
# ¿ May 22, 2014 20:32 |
|
Ok I broke my emacs and now I'm sad. Emacs 24.3.1 on Ubuntu. I used the package manger to install the Sublime Text package, now when I start emacs I get some startup errors. Emacs runs but it doesn't load my .emacs file and I can't use the ESC button. Every time I press ESC to do a M-x the minibuff says "Cannot open load file: /yasnippet" Omg I can't do M-x that's like my main thing. How do I uninstall the sublime package I installed? Emacs told me to run emacs --debug-init and It points to yasnippet being where the problem is. Or at least that's where stuff breaks, the real problem could be elsewhere. I see both a yasnippet and sublime folder under .emacs.d/elpa/ should I delete those folders?
|
# ¿ Jun 30, 2014 23:54 |
|
Thanks for the tips Aerique. Renaming the two folders was enough to get everything working again. Whew. Hey, does anyone use keybindings other than M-w and C-w for copy/cut ? I don't like M-w for copy, but I don't know what other keybinding to use. I'm afraid I'll overwrite something useful that I just don't know about yet.
|
# ¿ Jul 1, 2014 23:41 |
|
So I used M-x upcase-region and got a warning about it often confusing new users. What's the story on that? Is it doing something besides just making all the letters capitol? I was surprised by the warning.
|
# ¿ Aug 14, 2014 19:50 |
|
In the videos for Emacs Rocks, what feature is he using to show where the file ends? It's a grey line along the left of the buffer where other editors would put line numbers. Actually, it would be below where the line numbers stop in other editors. Any other cool modes you emacs masters run that do little tweaks like this?
|
# ¿ Sep 15, 2014 23:16 |
|
orphean posted:(setq default-indicate-empty-lines t) Thanks buddy I really like seeing where my files end for some reason. I eval-ed this and immediately smiled. The more I think about how emacs lets your play with the global environment the more it seems like emacs should be more of a chaotic mess than it is. Instead it's a powerhouse of productivity and fun Thanks for the list of modes to try out. I think I'll explore Helm next. It looks like a more advanced version of ido. I get tons of use out of ido so improving that sounds like a great idea. I recently installed company mode thinking I would have to muck around with backends before I got it useable and I am super happy to see that I didn't have to install anything besides the base package before it was very usable. By default it works similar to Sublime text where it will just pull words from the current file as suggestions. All emacs noobies like me should give it a shot as an easy way to get auto-completion going! Also, nzenburn is the best theme I have found so far, but the built in tango-dark theme is also very nice. Everyone else should post more about emacs
|
# ¿ Sep 16, 2014 22:51 |
|
Emacs is getting some discussion these days. Stackoverflow is making an emacs specific Q&A site. Also the Emacs mailing list is talking about just sticking with elisp instead of trying to get Guile scheme integrated. I know elisp isn't very well regarded as a modern programming language. I'm hoping to eventually learn elisp so I can make cool modes for emacs, but if the language is going to change in new versions or switch to Guile then maybe I should put off my studying. Surprise T Rex posted:It got a lot easier too when I gave up on using the C-[whatever] shortcuts to move the point and just went back to 'proper' keyboard cursor movement. Are you talking about using arrow keys instead of like C-f to move right? Because forget that crap I'm arrow keys for life. Anyway, emacs is all about setting up the system to be easy for you so if you decide not to do C-[whatever] then that is a valid choice.
|
# ¿ Sep 17, 2014 18:47 |
|
Just used tramp mode for the first time and it's amazing. On my linux box it works great without extra setup and I'm anxious to setup putty so I can remotely edit and browse folders from my windows 7 emacs install. But I'm confused as to if it is keeping a connection open for a long time or just making connections as needed? When I close a file and all the dired buffers, does that close the ssh connection? I also see a tramp-cleanup-all-connections function, do I need to call that with M-x when I am done?
|
# ¿ Sep 29, 2014 19:43 |
|
org-mode question: I'm cleaning up my org file, and I find that I am in need of a way to mark all items in a subtree as DONE. So I have something like this: code:
Also, I like having code:
Anyway that's my org-mode tip, what's everyone else doing to make org-mode even more awesome than it already is?
|
# ¿ Oct 10, 2014 00:02 |
|
How do I read an emacs backtrace? I've got one here and I'm not sure where my error is. I was using Org 7.9.3f and today I upgrade emacs to 24.4.1 and it came with Org 8.2.10. I am trying to export an org file to HTML. It was working fine before, but now it will not export. Is there a way to get some line numbers out of that backtrace? It seems like I have a malformed timestamp or time range in my file, but there are thousands of entries I don't know which one is wrong. I can recalculate my clock tables without issue, it's just export that throws an error.
|
# ¿ Nov 26, 2014 00:40 |
|
Thanks for the detailed answer! I enabled toggle-debug-on-error, but it just results in the same stacktrace that I posted before, i was expecting something interactive. Is there a different way to enable the debugger? I'm running this on Windows 7, does the debugger even run on windows?
|
# ¿ Nov 26, 2014 19:41 |
|
Hey I use this line in my .emas to make text bigger:Lisp code:
|
# ¿ Feb 25, 2015 22:07 |
|
Deus Rex posted:This is a stupid question, but have you tried changing the number to be bigger on your Mac (like evaluating: Well, that worked, I feel pretty silly now. Thanks for the tip! I wonder if this machine has a high resolution/dpi screen and perhaps thats why the scale is different.
|
# ¿ Feb 26, 2015 00:11 |
|
Why is it that when I scroll around in a buffer, the cursor will stay in the visible area? I'm used to modern GUI editors where the cursor stays fixed while I scroll through a file. Is there a flag or mode to get the behavior I'm used to?
|
# ¿ Apr 24, 2015 00:09 |
|
Looks like EmacsConf is this weekend in San Francisco. Anyone going? Seems much of it will be live streamed. I plan to check it out, maybe get a emacs guru to show me how helm mode is installed and used. http://emacsconf2015.org/
|
# ¿ Aug 24, 2015 17:16 |
|
|
# ¿ May 10, 2024 13:43 |
|
Lets say I have this org file:code:
I'm on 24.5.1 on OS X with org version 8.2.10
|
# ¿ Apr 8, 2016 01:29 |