Ubuntu :: Indentation Lost With Longlines In Emacs / Prevent This?

May 26, 2010

I'm an emacs (and ubuntu of course!) enthusiast, and I'd like to use it to write latex file. I'm using longlines mode in emacs to wrap around the lines, the problem is though that once a line is wrapped, the indentation is lost...

is there a feature which could be activated to prevent this?

View 2 Replies


ADVERTISEMENT

Ubuntu :: Prevent The Sleep State From Being Lost On Power Failure?

May 17, 2010

When I tell the computer to go to sleep and there is a power failure the sleep state is lost. Is there a way to prevent this? I already know about hibernate and I'm using it but sleep is faster and there is no complete loading of the computer (BIOS, Grub and so on) it just goes directly into the desktop. As far as I know the sleep state is done when everything is in RAM and the computer is turned off but the RAM sticks still receive power. Is this true?

P.S. Can this be done with hibernate and SSD drives? As far as I can tell from what I've read it will be the same but with no state loss. Is this true?

View 2 Replies View Related

General :: Remove The $ From Nano On Longlines?

Feb 16, 2010

is it possible to configure nano to have line breaks on long lines instead of showing a $?

View 2 Replies View Related

Ubuntu :: Code In Emacs File To Start Emacs Maximized?

May 17, 2010

I was using the following code in my .emacs file to start emacs maximized:

Quote:
(defun toggle-fullscreen ()
(interactive)
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32

[Code]...

View 2 Replies View Related

Programming :: How To Write To A File With Specific Indentation Through Php

Dec 12, 2008

I am a beginner with php ,trying to work my way through.
I have a file to be written with particular indentation and by appending some special characters...
this is the o/p file i wanted. could anyone please guide me as to how i can write it? code...

View 1 Replies View Related

Software :: Put Vim Indentation Style Comments In A Source File?

Jul 15, 2011

I have seen that it's possible to put special comments in a source file that tell vim what indentation style to use. The problem is that i don't know how to use them, and can't find and tutorials or documeantaion since I have no clue what this feature is called.

View 3 Replies View Related

Programming :: IndentationError: Unindent Does Not Match Any Outer Indentation Level

Feb 2, 2010

i was recently building on a simple socket program i had written in python basically like a little chat client but i added a server_socket.close command to kill the server on disconnect and now im getting all sorts of indentation errors


Code:

#! /usr/bin/python
2 import socket
3 server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
4 server_socket.bind(("localhost", 5000))

[code]....

IndentationError: unindent does not match any outer indentation level

View 1 Replies View Related

Ubuntu :: Emacs Causes X Crash In 10.10

Oct 14, 2010

Since upgrading to Ubuntu 10.10 I have been unable to use Emacs23. Upon starting Emacs, it immediately causes X to crash and I am returned to the login screen.I thought of looking for a log file and providing it here or in a Launchpad post to shed some light on the problem, but I don't know which log I could provide (if there is one).

View 4 Replies View Related

Ubuntu :: Run Emacs Within Terminal?

Dec 11, 2010

After I installed GNU Emacs 23 to my Ubuntu system, every time I invoke the "emacs file" command, it launches Emacs.Because opening up Emacs takes time on my PC's last century hardware, and it consumes quite a big chunk of memory too. I wonder if I can still do some quick text editing using Terminal's emacs mode?

View 1 Replies View Related

Ubuntu :: Open Emacs With Ssh?

Jun 30, 2011

I am using emacs at work, and when I am home I use ssh through the terminal to connect to my computer at work. However starting emacs through ssh only gives me emacs in the terminal. As it is a bit awkward to work with I would like to open the GUI version of emacs through ssh. I tried installing tramp, but that did not seem to have any effect.

View 7 Replies View Related

Ubuntu :: How To Scroll Down Other Window In Emacs

Oct 26, 2010

I like emacs very much, and especially like using C-M-v and C-M-S-V to scroll other window up and down. It is cool, especially when I am coding and referring documents.The problem is, using C-M-v to scroll down is OK in both terminal and X,but using C-M-S-V to scroll up just works well in X, if I use it in terminal, it behaves scrolling down too.

View 2 Replies View Related

Ubuntu :: Have To Press C-x 1 When Emacs Startup

Nov 6, 2010

i intend to integrate with speedbar in the emacs frame. but the it seems didn't work correctly follow my mind, i have to press C-x 1 to solve the mistake when emacs startup!!!

screenshot for emacs starup:

and after i press C-x 1

what should i write in .emacs? and i had wrote these lines to ~/.emacs:

;speedbar intergration
(require 'tramp)
(defconst my-junk-buffer-name "Junk")
(setq junk-buffer (get-buffer-create my-junk-buffer-name)
)

[Code]....

View 5 Replies View Related

Ubuntu :: Emacs .el File Addon?

Mar 23, 2011

I'm new to the emacs thingy. i just moved back to ubuntu.i have found out how to have emacs load the .el file from the .emacs file but i cant seem to use the addon.http://blogs.unity3d.com/2010/01/15/...ty-javascript/that is the addon i am trying to use.this is my .emacs file:

(add-to-list 'load-path "~/.emacs.d")
;; UnityJS mode for emacs
(autoload 'unityjs-mode "unityjs-mode" "Major mode for editing Unity Javascript code." t)

[code]....

View 2 Replies View Related

Ubuntu :: Logs Out Each Time When Use Emacs (X11)

May 3, 2011

I recently clean installed Ubuntu 10.10 and copied over my last home directory from 11.04, after having upgraded from 10.10. Maybe something went wrong in this transition which is making this happen. Basically, I have a macbook pro with Ubuntu 10.10 64 bit and have the latest nvidia driver. I'm sshing using -X and -A. I try "emacs &" and Ubuntu logs me out immediately. Occasionally, it will simply log me out on startup although I haven't seen this happen in the last few logins. I also just tried running kdiff3. It starts to load the window and it does the same as emacs: it logs me out of Ubuntu.

View 3 Replies View Related

Ubuntu :: Functionality Like Ctrl-tab In Emacs?

May 6, 2011

I've recently started using Emacs and find switching between different buffers using the menu to be inconvenient. Is there any mode or trick that allows functionalitry like Alt-tab?

View 3 Replies View Related

Ubuntu :: Natty: No Fonts In Emacs Over Ssh?

Jun 21, 2011

I successfully installed Natty on my PC and everything works great. Or nearly! If I connect to a server via ssh and try to open an emacs window on the server: no fonts are visualized (only empty boxes) and I get the following warnings:

Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct
- running emacs with the "no window" option -nw works fine (but I don't like working with emacs in the terminal window).

[Code]...

View 4 Replies View Related

Ubuntu :: Emacs Org Mode Broke After Update

Jan 9, 2010

I just updated to emacs23 from emacs22 (sudo apt-get install emacs2). I find that I now have a problem with org mode structured lists not appearing. A single asteriks on a line by itself no longer appears highlighted and no longer collapses and expands using the tab key.

View 2 Replies View Related

Ubuntu :: Setting EDITOR=emacs Causes Lockup

Jan 12, 2010

I'm putty'd into an Ubuntu server box and have EDITOR=emacs set. However whenever I run crontab -e my shell locks up.

I can use emacs normally by typing emacs from the command line, so I'm not sure what problem is. If I set EDITOR=vi I can run crontab -e and it opens in vi

View 2 Replies View Related

Ubuntu :: Key Bindings Suddenly Changed In Emacs?

Feb 22, 2010

I turn on my laptop running 64-bit karmic (if that helps anyone), open GNU Emacs 23.1.1 with the org files I've been working on, and for some reason it is not recognising standard key bindings, for the first time ever, with no reason I can conceive. What does "M-kp-enter is undefined" mean when it seemed well defined not long before? It seems using Esc-enter still works.. can anyone suggest if there are any config files I might need to edit, or what else could have gone wrong?

View 1 Replies View Related

Ubuntu :: Open File From Webpage In Emacs?

Aug 25, 2010

When clicking on a file in a webpage such as a .tex file the default viewer is mousepad. I search for Emacs to open it, but browsing gets me no where. How do I find it or set it so that I can open directly files in it without explicitly saving them

View 2 Replies View Related

Ubuntu :: Emacs Initialization/shell Script?

Jun 21, 2011

I have emacs23 from the Lucid repository.I know how to load and edit remote python files with

Code:
C-x C-f /ssh:usr@domain:/directory/*.py
Since I use this same command every time I open emacs, and I see that you can use lisp

[code]....

View 2 Replies View Related

Ubuntu :: Emacs -- Run Shell Command W/o Output?

Jul 12, 2011

I write LaTeX in Emacs and then run a shell script to process the LaTeX code. I used to run a subshell buffer with M-x shell and then execute the script from within there, but this results in a lot of switching between buffers, which seems unnecessary. Then, I found out about executing shell commands with M-! cmd RET, as described here:[URL]The problem with this is that the output from the script splits my screen. It's a nuisance, and I would like to run the script without any output. I've tried appending > /dev/null to the command, but it doesn't work.For example, when from within Emacs I enter M-! followed by

Code:
sh make.sh > /dev/null
it splits my screen so that one portion displays output from the make.sh script. I want it to run silently, and leave my Emacs buffers alone

View 3 Replies View Related

Ubuntu Installation :: Get Latest Version Of Emacs?

Sep 1, 2011

I have Ubuntu 10.10. The software package that is available in the Software Center and Synaptic is 23.1 (which I installed), but I'd like to install the latest release (23.3). What's the best way to go? I know that you're supposed to try to find a deb package if possible, but there's only tar.gz files on the official GNU site. I found this site: http:[url]....

which seems to have the deb package for 23.3, but I don't know anything about this site and if I can trust it.I found version 23.2 here:

http://packages.debian.org/stable/editors/ though I'd still prefer the latest version. But again, I don't know this site either.What's the best for me to get 23.3 where it will just work and I don't start getting dependency errors?

View 1 Replies View Related

Ubuntu :: Weird Error When Start Emacs?

May 14, 2010

I do not know what makes this error when I start emacs from the terminal** (emacs:30705): CRITICAL **: murrine_style_draw_box: assertion `height >= -1' failedDoes anyone know how to get rid of this error ?

View 3 Replies View Related

Ubuntu :: Customize AUCTeX View Command In Emacs?

May 20, 2010

I've been using Emacs with the AUCTeX package to edit and compile my .tex documents lately, but there's something that's been bugging me. First, here is the short question:How can I costumize the default view command emacs runs when I type C^c C^c <enter>?I've read that it's done with the tex-view-dvi-command variable, but I've had no luck getting it to work at all.Now the explanation:It bugs me that whenever I type C^c C^c to compile, and then C^c C^c to view dvi, emacs doesn't automatically give focus to the dvi viewer (xdvi). Digging a little, I found out that the command "wmctrl -a main" gives focus to xdvi ("main" is the title of the xdvi window). So, if I can only customize AUCTeX's standard view command to include "&& wmctrl -a main" at the end, than my problem would be solved

View 2 Replies View Related

Ubuntu :: Setup Jde With Emacs - Find My Jdk Path And Verison To It?

Feb 2, 2011

How do i setup jde with emacs and how do i find my jdk path and verison to it?

Here the link i try to found.

[url]

View 1 Replies View Related

Ubuntu Installation :: Emacs Extensions Doesn't Work?

Feb 9, 2011

I've just moved from openSuSE to Kubuntu 10.10 - and I find almost all of emacs extentions not working. For example - see the report of emacs --degug-init

Here it says that emacs have encoutered problems while loading autopair.el
But it was working on openSuSE! Or I have done smth wrong?

View 2 Replies View Related

Ubuntu :: Emacs In Remote Machine In Term Mode?

Jun 15, 2011

I ssh connect with a remote machine and have to use emacs.But emacs run only in term-mode. does anyone have a solution how can i run emacs in graph mode in the remote machine

View 1 Replies View Related

Fedora :: Emacs As Root In 12

Dec 6, 2009

I am sufferihng from two problems running emacs in Fedora 12: Firstly, whether I am logged in as root or not, starting emacs from an xterm gives me the following messages: Finished loading /usr/share/emacs/site-lisp/egg/leim-list.el and load others... Loading /usr/share/emacs/23.1/leim/leim-list.el (source)... Loading /usr/share/emacs/23.1/leim/leim-list.el (source)...done Not much of a problem, but I would like to know how to prevent this.

However, if I am logged in as root, or if I use 'su -c emacs' I get an additional message and then emacs takes a long time to start up. The additional message is: socket(): Address family not supported by protocol I did not get this in Fedora 10, and it is not so much the message but more the delay of a few seconds in starting up which is annoying me.

View 3 Replies View Related

General :: Run Emacs In CLI Inside Of GUI?

Jul 29, 2011

I tried Google search and reading man page options for emacs but couldn't find... If I run emacs in GUI, it starts GUI for emacs. I want to run it in CLI in rxvt. How do I do it?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved