Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Not for SSDs (Score 1) 256

Those filesystems are designed for FLASH devices like usb keys or memory cards but are probably not suitable for SSD.

The reason being that modern SSDs already perform wear leveling to improve the performances and I don't believe that apply wear leveling could be a good idea.

For the time being, it is probably better to wait for the SSD controller technology to mature.

On the OS, the existing filesystems should be tuned to exploit the lower seek times. Caching the writes so that they can be perform in large consecutive blocks probably make sense too.

Comment lisp interaction mode (Score 0) 412

M-x lisp-interaction-mode

Allow the execution of any emacs lisp command in a buffer (no need to edit your .emacs)

The *scratch* buffer is in that mode by default.

Basically you can do the following:

    (1) copy any of the e-lisp examples given in other post
    (2) put the cursor after the last ')'
    (3) press C-j to execute the command

For example (with indicates where you have to apply C-j):

(defun save-all ()
    "sauve tout les tampons"
    (interactive)
    (save-some-buffers 1)
)

(global-set-key [f6] 'save-all)

and you now have the function 'save-all' bind to F6 in your emacs session.

Comment Fix slow start and set X11 parameters (Score 0) 412

On some systems, gnu-emacs startup can be quite long because it is waiting for the Window Manager.

The same command also set the colors, font and a few other settings that used to be controlled by the X resources.

(if (eq window-system 'x)
        (if (x-display-color-p)
                (progn
                    (modify-frame-parameters nil '((wait-for-wm . nil))) ;; prevent slow start
                    (set-background-color "#FFDDD0")
                    (set-foreground-color "black")
                    (set-frame-font "9x15")
                    (set-cursor-color "red")
                    (set-mouse-color "blue")
  )))

Comment Improved compilation (Score 0) 412

This one set the default command for 'compile'
(setq compile-command "make -k")

Add my favorite commands to the 'compile' history

(setq compile-history
  ( list compile-command
          "cd $HOME/work/project ; make -k"
          "cd $HOME/work/project ; make -k build"
          "cd $HOME/work/project ; make -k clean all"
          "cd $HOME/work/project ; configure"
  ))

Save all modified files at once

(defun save-all ()
    "sauve tout les tampons"
    (interactive)
    (save-some-buffers 1)
)

Save all modified files and relaunch the last 'compile' command

(defun save-all-and-recompile ()
    "Sauve tout les fichiers et lance une compilation"
    ( interactive)
    (save-some-buffers 1)
    ( recompile )
)

Some fast keyboard shortcuts for compilation

(global-set-key [f6] 'save-all)
(global-set-key [f7] 'compile)
(global-set-key [f8] 'save-all-and-recompile)
(global-set-key [f12] 'next-error)

Slashdot Top Deals

The difference between reality and unreality is that reality has so little to recommend it. -- Allan Sherman

Working...